aboutsummaryrefslogtreecommitdiffstats
path: root/avconv.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-06-21 12:47:01 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-06-22 20:54:59 +0200
commit1e340af8d6a97cc013a2ad8ba77c77129625a34f (patch)
tree7f66a3465128c4b7c5d1966460351692f04656ea /avconv.c
parent720a1de52fb4abd8e0541cdcc7d57cb0044c7d3a (diff)
downloadffmpeg-1e340af8d6a97cc013a2ad8ba77c77129625a34f.tar.gz
avconv: drop additional strerror fallback
strerror_r is called by av_strerror already.
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/avconv.c b/avconv.c
index 480823506f..b490d4aa4a 100644
--- a/avconv.c
+++ b/avconv.c
@@ -1757,10 +1757,11 @@ static int transcode_init(void)
oc->interrupt_callback = int_cb;
if ((ret = avformat_write_header(oc, &output_files[i]->opts)) < 0) {
char errbuf[128];
- const char *errbuf_ptr = errbuf;
- if (av_strerror(ret, errbuf, sizeof(errbuf)) < 0)
- errbuf_ptr = strerror(AVUNERROR(ret));
- snprintf(error, sizeof(error), "Could not write header for output file #%d (incorrect codec parameters ?): %s", i, errbuf_ptr);
+ av_strerror(ret, errbuf, sizeof(errbuf));
+ snprintf(error, sizeof(error),
+ "Could not write header for output file #%d "
+ "(incorrect codec parameters ?): %s",
+ i, errbuf);
ret = AVERROR(EINVAL);
goto dump_format;
}