mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
aviocat: Check for output write errors
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
585dc1aece
commit
f19fbfbdc6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user