aboutsummaryrefslogtreecommitdiff
path: root/avconv.c
diff options
context:
space:
mode:
authorLuca Barbato2015-03-11 01:44:47 +0100
committerLuca Barbato2015-03-20 18:42:26 +0100
commit22a6d48b0d7367b3a45dd6db245f8ffaaa364995 (patch)
tree05952ebe217e7d6107045c78cbbf734882b70d54 /avconv.c
parent342fc46c69199b076b7c210f42208ce39a2bde1c (diff)
avconv: Print the avfilter errors
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/avconv.c b/avconv.c
index 30c1ea8829..da9bc939b0 100644
--- a/avconv.c
+++ b/avconv.c
@@ -1292,8 +1292,12 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
decoded_frame->width, decoded_frame->height, av_get_pix_fmt_name(decoded_frame->format));
ret = poll_filters();
- if (ret < 0 && (ret != AVERROR_EOF && ret != AVERROR(EAGAIN)))
- av_log(NULL, AV_LOG_ERROR, "Error while filtering.\n");
+ if (ret < 0 && (ret != AVERROR_EOF && ret != AVERROR(EAGAIN))) {
+ char errbuf[128];
+ av_strerror(ret, errbuf, sizeof(errbuf));
+
+ av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", errbuf);
+ }
ist->resample_width = decoded_frame->width;
ist->resample_height = decoded_frame->height;
@@ -2514,11 +2518,15 @@ static int transcode(void)
ret = poll_filters();
if (ret < 0) {
- if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN))
+ if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN)) {
continue;
+ } else {
+ char errbuf[128];
+ av_strerror(ret, errbuf, sizeof(errbuf));
- av_log(NULL, AV_LOG_ERROR, "Error while filtering.\n");
- break;
+ av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", errbuf);
+ break;
+ }
}
/* dump report by using the output first video and audio streams */