diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/aviocat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aviocat.c b/tools/aviocat.c index 983108a..28529b0 100644 --- a/tools/aviocat.c +++ b/tools/aviocat.c @@ -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); |