Commit f19fbfbd authored by Martin Storsjö's avatar Martin Storsjö

aviocat: Check for output write errors

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 585dc1ae
......@@ -107,6 +107,11 @@ int main(int argc, char **argv)
if (n <= 0)
break;
avio_write(output, buf, n);
if (output->error) {
av_strerror(output->error, errbuf, sizeof(errbuf));
fprintf(stderr, "Unable to write %s: %s\n", output_url, errbuf);
break;
}
stream_pos += n;
if (bps) {
avio_flush(output);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment