mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Move frame_available computation to where it belongs in ffmpeg.c.
This fixes a infinite loop. Fixes issue 2066. Originally committed as revision 24058 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3d5421201b
commit
748db0fcc4
6
ffmpeg.c
6
ffmpeg.c
@ -1773,13 +1773,11 @@ static int output_packet(AVInputStream *ist, int ist_index,
|
||||
av_free_packet(&opkt);
|
||||
}
|
||||
}
|
||||
#if CONFIG_AVFILTER
|
||||
frame_available = (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO) &&
|
||||
ist->out_video_filter && avfilter_poll_frame(ist->out_video_filter->inputs[0]);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if CONFIG_AVFILTER
|
||||
frame_available = (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO) &&
|
||||
ist->out_video_filter && avfilter_poll_frame(ist->out_video_filter->inputs[0]);
|
||||
if(ist->picref)
|
||||
avfilter_unref_pic(ist->picref);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user