]> git.sesse.net Git - ffmpeg/blobdiff - tools/aviocat.c
Merge commit '3cae7f8b9baaf43789490b676d8f5825f2e1bc2c'
[ffmpeg] / tools / aviocat.c
index 983108a64a7912dba67c10b3638847f4996ae804..28529b06d6a99341e3cbf0b82fcb255827d7c3e5 100644 (file)
@@ -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);