[FFmpeg-cvslog] ffmpeg: Warn if filters poll & request frame behave wrongly.

Michael Niedermayer git at videolan.org
Tue Dec 6 16:12:52 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec  6 16:01:21 2011 +0100| [c89488588b740e7ff6fb7cc7344e9501e6baba01] | committer: Michael Niedermayer

ffmpeg: Warn if filters poll & request frame behave wrongly.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c89488588b740e7ff6fb7cc7344e9501e6baba01
---

 ffmpeg.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index e10f0a2..7929da2 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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);



More information about the ffmpeg-cvslog mailing list