diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-02-23 14:02:11 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-02-23 14:02:11 +0000 |
commit | d46b2d682ff5e6a2246f334eb476af98f8cda180 (patch) | |
tree | e6fa127714c653035b15e5900141fce5138eee36 /libavcodec | |
parent | 40e5d31b576fcd0674acf35ce2120242a72dd801 (diff) | |
download | ffmpeg-d46b2d682ff5e6a2246f334eb476af98f8cda180.tar.gz |
100l, always declare variables at the top of a block, not inside a for ()
Originally committed as revision 17541 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vdpau.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index 1645d255f2..805fe79fe9 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -131,6 +131,7 @@ void ff_vdpau_h264_picture_complete(MpegEncContext *s) { H264Context *h = s->avctx->priv_data; struct vdpau_render_state *render; + int i; render = (struct vdpau_render_state *)s->current_picture_ptr->data[0]; assert(render); @@ -139,7 +140,7 @@ void ff_vdpau_h264_picture_complete(MpegEncContext *s) if (render->info.h264.slice_count < 1) return; - for (int i = 0; i < 2; ++i) { + for (i = 0; i < 2; ++i) { int foc = s->current_picture_ptr->field_poc[i]; if (foc == INT_MAX) foc = 0; |