Browse Source

avconv: drop additional strerror fallback

strerror_r is called by av_strerror already.
tags/n2.0
Luca Barbato 12 years ago
parent
commit
1e340af8d6
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      avconv.c

+ 5
- 4
avconv.c View File

@@ -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;
}


Loading…
Cancel
Save