aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-04-13 13:16:23 +0200
committerStefano Sabatini <stefasab@gmail.com>2013-04-14 20:30:37 +0200
commitf6c9a325b727b807d7e666ea41858dae9ebce916 (patch)
tree5f829a352a14cb154ced4aba5ba6362ab893a5e0 /ffmpeg.c
parentfba3a3bbfba39ba1fc82f884e057c7fc34559663 (diff)
downloadffmpeg-f6c9a325b727b807d7e666ea41858dae9ebce916.tar.gz
ffmpeg: show error message in case of av_buffersrc_add_frame_flags() failure
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 3f26249d42..ea41645191 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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);