[FFmpeg-cvslog] r17541 - trunk/libavcodec/vdpau.c
reimar
subversion
Mon Feb 23 15:02:11 CET 2009
Author: reimar
Date: Mon Feb 23 15:02:11 2009
New Revision: 17541
Log:
100l, always declare variables at the top of a block, not inside a for ()
Modified:
trunk/libavcodec/vdpau.c
Modified: trunk/libavcodec/vdpau.c
==============================================================================
--- trunk/libavcodec/vdpau.c Mon Feb 23 14:44:51 2009 (r17540)
+++ trunk/libavcodec/vdpau.c Mon Feb 23 15:02:11 2009 (r17541)
@@ -131,6 +131,7 @@ void ff_vdpau_h264_picture_complete(Mpeg
{
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(Mpeg
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;
More information about the ffmpeg-cvslog
mailing list