aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-15 23:54:29 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-03 18:26:39 +0100
commitb32554175c5f279f1d25c49f0910494efa29783c (patch)
tree6baf0955b6dd50efce2f2a9e357fe56aad55cc95
parent134b7f57dbcd9eed254f5309b6d9bb1b993b8fe3 (diff)
downloadffmpeg-b32554175c5f279f1d25c49f0910494efa29783c.tar.gz
ffmpeg: check return code from av_vsrc_buffer_add_frame()
Fixed Ticket770 Bug found by: Diana Elena Muscalu Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 1f273c2bf22c49e5f668debf52c497dabee636c7) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 2b1fd07953..91c5269f30 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1902,7 +1902,10 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
*frame_sample_aspect = ist->st->sample_aspect_ratio;
decoded_frame->pts = ist->pts;
- av_vsrc_buffer_add_frame(ost->input_video_filter, decoded_frame, AV_VSRC_BUF_FLAG_OVERWRITE);
+ if((av_vsrc_buffer_add_frame(ost->input_video_filter, decoded_frame, AV_VSRC_BUF_FLAG_OVERWRITE)) < 0){
+ av_log(0, AV_LOG_FATAL, "Failed to inject frame into filter network\n");
+ exit_program(1);
+ }
}
}
#endif