diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-15 23:54:29 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-03 18:26:39 +0100 |
commit | b32554175c5f279f1d25c49f0910494efa29783c (patch) | |
tree | 6baf0955b6dd50efce2f2a9e357fe56aad55cc95 | |
parent | 134b7f57dbcd9eed254f5309b6d9bb1b993b8fe3 (diff) | |
download | ffmpeg-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |