diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-04-13 13:16:23 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-04-14 20:30:37 +0200 |
commit | f6c9a325b727b807d7e666ea41858dae9ebce916 (patch) | |
tree | 5f829a352a14cb154ced4aba5ba6362ab893a5e0 | |
parent | fba3a3bbfba39ba1fc82f884e057c7fc34559663 (diff) | |
download | ffmpeg-f6c9a325b727b807d7e666ea41858dae9ebce916.tar.gz |
ffmpeg: show error message in case of av_buffersrc_add_frame_flags() failure
-rw-r--r-- | ffmpeg.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1715,12 +1715,12 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output) break; } else f = decoded_frame; - if(av_buffersrc_add_frame_flags(ist->filters[i]->filter, f, - AV_BUFFERSRC_FLAG_PUSH)<0) { - av_log(NULL, AV_LOG_FATAL, "Failed to inject frame into filter network\n"); + ret = av_buffersrc_add_frame_flags(ist->filters[i]->filter, f, AV_BUFFERSRC_FLAG_PUSH); + if (ret < 0) { + av_log(NULL, AV_LOG_FATAL, + "Failed to inject frame into filter network: %s\n", av_err2str(ret)); exit(1); } - } av_frame_unref(ist->filter_frame); |