Commit 4907a70b authored by reimar's avatar reimar

100l, always declare variables at the top of a block, not inside a for ()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17541 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 39406dc0
...@@ -131,6 +131,7 @@ void ff_vdpau_h264_picture_complete(MpegEncContext *s) ...@@ -131,6 +131,7 @@ void ff_vdpau_h264_picture_complete(MpegEncContext *s)
{ {
H264Context *h = s->avctx->priv_data; H264Context *h = s->avctx->priv_data;
struct vdpau_render_state *render; struct vdpau_render_state *render;
int i;
render = (struct vdpau_render_state *)s->current_picture_ptr->data[0]; render = (struct vdpau_render_state *)s->current_picture_ptr->data[0];
assert(render); assert(render);
...@@ -139,7 +140,7 @@ void ff_vdpau_h264_picture_complete(MpegEncContext *s) ...@@ -139,7 +140,7 @@ void ff_vdpau_h264_picture_complete(MpegEncContext *s)
if (render->info.h264.slice_count < 1) if (render->info.h264.slice_count < 1)
return; return;
for (int i = 0; i < 2; ++i) { for (i = 0; i < 2; ++i) {
int foc = s->current_picture_ptr->field_poc[i]; int foc = s->current_picture_ptr->field_poc[i];
if (foc == INT_MAX) if (foc == INT_MAX)
foc = 0; foc = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment