diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-12-20 10:06:49 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-12-20 22:38:54 +0100 |
commit | 1ce1578e4e6e4c79eff87b997668779e50e4be33 (patch) | |
tree | a36b9cff1f29abab718e191e923241eefbf0ccd2 /libavcodec | |
parent | a55eb1586c3a0361d1ced1ba9d32e11b68441c29 (diff) | |
download | ffmpeg-1ce1578e4e6e4c79eff87b997668779e50e4be33.tar.gz |
mpegvideo_enc: separate declarations and statements
libavcodec/mpegvideo_enc.c:1209: warning: ISO C90 forbids mixed declarations and code
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 14f5447d07..798eb5c1c1 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1203,10 +1203,11 @@ no_output_pic: if (s->reordered_input_picture[0]->f.type == FF_BUFFER_TYPE_SHARED || s->avctx->rc_buffer_size) { // input is a shared pix, so we can't modifiy it -> alloc a new one & ensure that the shared one is reuseable + Picture *pic; int i= ff_find_unused_picture(s, 0); if (i < 0) return i; - Picture *pic= &s->picture[i]; + pic = &s->picture[i]; pic->f.reference = s->reordered_input_picture[0]->f.reference; if(ff_alloc_picture(s, pic, 0) < 0){ |