diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-06 16:01:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-06 16:08:29 +0100 |
commit | c89488588b740e7ff6fb7cc7344e9501e6baba01 (patch) | |
tree | 6df6dfcf00977e64632e9de838457bf966914f1b /ffmpeg.c | |
parent | 7ecabc850558467cd1fcb8769aae16b1f6956073 (diff) | |
download | ffmpeg-c89488588b740e7ff6fb7cc7344e9501e6baba01.tar.gz |
ffmpeg: Warn if filters poll & request frame behave wrongly.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1923,8 +1923,10 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int while (frame_available) { if (ost->output_video_filter) { AVRational ist_pts_tb = ost->output_video_filter->inputs[0]->time_base; - if (av_buffersink_get_buffer_ref(ost->output_video_filter, &ost->picref, 0) < 0) + if (av_buffersink_get_buffer_ref(ost->output_video_filter, &ost->picref, 0) < 0){ + av_log(0, AV_LOG_WARNING, "AV Filter told us it has a frame available but failed to output one\n"); goto cont; + } if (!ist->filtered_frame && !(ist->filtered_frame = avcodec_alloc_frame())) { av_free(buffer_to_free); return AVERROR(ENOMEM); |