diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-06 17:03:07 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-08 21:19:27 +0100 |
commit | ec9d92700e490de2a6a5ce7fdcca3e9d113a5b2a (patch) | |
tree | 086b1bf547bfa79f44c1c90b6e90b6e33d9f7624 | |
parent | a502939d64e807da6b3a9be84f4b21b35e5d251f (diff) | |
download | ffmpeg-ec9d92700e490de2a6a5ce7fdcca3e9d113a5b2a.tar.gz |
ffmpeg: Use the buffer sinks poll instead of its input.
This fixes the case that the buffer sinks fifo contains frames which
would not show up on the poll from its input
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1918,7 +1918,7 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int #if CONFIG_AVFILTER if (ost->input_video_filter) { - frame_available = avfilter_poll_frame(ost->output_video_filter->inputs[0]); + frame_available = av_buffersink_poll_frame(ost->output_video_filter); } while (frame_available) { if (ost->output_video_filter) { @@ -1951,7 +1951,7 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int do_video_stats(output_files[ost->file_index].ctx, ost, frame_size); #if CONFIG_AVFILTER cont: - frame_available = ost->output_video_filter && avfilter_poll_frame(ost->output_video_filter->inputs[0]); + frame_available = ost->output_video_filter && av_buffersink_poll_frame(ost->output_video_filter); avfilter_unref_buffer(ost->picref); } #endif |