mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mpegvideo_enc: separate declarations and statements
libavcodec/mpegvideo_enc.c:1209: warning: ISO C90 forbids mixed declarations and code
This commit is contained in:
parent
a55eb1586c
commit
1ce1578e4e
@ -1203,10 +1203,11 @@ no_output_pic:
|
|||||||
if (s->reordered_input_picture[0]->f.type == FF_BUFFER_TYPE_SHARED || s->avctx->rc_buffer_size) {
|
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
|
// 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);
|
int i= ff_find_unused_picture(s, 0);
|
||||||
if (i < 0)
|
if (i < 0)
|
||||||
return i;
|
return i;
|
||||||
Picture *pic= &s->picture[i];
|
pic = &s->picture[i];
|
||||||
|
|
||||||
pic->f.reference = s->reordered_input_picture[0]->f.reference;
|
pic->f.reference = s->reordered_input_picture[0]->f.reference;
|
||||||
if(ff_alloc_picture(s, pic, 0) < 0){
|
if(ff_alloc_picture(s, pic, 0) < 0){
|
||||||
|
Loading…
Reference in New Issue
Block a user