summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorFrançois Revol <revol@free.fr>2010-05-15 17:34:45 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-05-15 17:34:45 +0000
commit65929418f50535a40dfc4c7b105d31903228bdfc (patch)
tree0b3dcecdf38675e8cc376cdf7a83f85394c3da38 /ffplay.c
parent9121b8ca6ccc322a122460701ad9df6c767c7ae3 (diff)
downloadffmpeg-65929418f50535a40dfc4c7b105d31903228bdfc.tar.gz
Avoid mixed declaration and code, fix C89 compatibility.
Patch by François Revol revol free fr. Originally committed as revision 23143 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index 24d2d27680..a48891e4f2 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1565,7 +1565,7 @@ static int input_get_buffer(AVCodecContext *codec, AVFrame *pic)
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(AVCodecContext *codec, AVFrame *pic)
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;