You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Merge commit 'f19fbfbdc637e08ad5c980807ede2d023f20c049'
* commit 'f19fbfbdc637e08ad5c980807ede2d023f20c049': aviocat: Check for output write errors Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -107,6 +107,11 @@ int main(int argc, char **argv)
|
|||||||
if (n <= 0)
|
if (n <= 0)
|
||||||
break;
|
break;
|
||||||
avio_write(output, buf, n);
|
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;
|
stream_pos += n;
|
||||||
if (bps) {
|
if (bps) {
|
||||||
avio_flush(output);
|
avio_flush(output);
|
||||||
|
Reference in New Issue
Block a user