[FFmpeg-cvslog] r23143 - trunk/ffplay.c

stefano subversion
Sat May 15 19:34:45 CEST 2010


Author: stefano
Date: Sat May 15 19:34:45 2010
New Revision: 23143

Log:
Avoid mixed declaration and code, fix C89 compatibility.

Patch by Fran?ois Revol revol free fr.

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Sat May 15 14:33:31 2010	(r23142)
+++ trunk/ffplay.c	Sat May 15 19:34:45 2010	(r23143)
@@ -1565,7 +1565,7 @@ static int input_get_buffer(AVCodecConte
     AVFilterContext *ctx = codec->opaque;
     AVFilterPicRef  *ref;
     int perms = AV_PERM_WRITE;
-    int w, h, stride[4];
+    int i, w, h, stride[4];
     unsigned edge;
 
     if(pic->buffer_hints & FF_BUFFER_HINTS_VALID) {
@@ -1587,7 +1587,7 @@ static int input_get_buffer(AVCodecConte
 
     ref->w = codec->width;
     ref->h = codec->height;
-    for(int i = 0; i < 3; i ++) {
+    for(i = 0; i < 3; i ++) {
         unsigned hshift = i == 0 ? 0 : av_pix_fmt_descriptors[ref->pic->format].log2_chroma_w;
         unsigned vshift = i == 0 ? 0 : av_pix_fmt_descriptors[ref->pic->format].log2_chroma_h;
 



More information about the ffmpeg-cvslog mailing list