Browse code

flvenc: propagate error properly

avio_flush can fail, in particular when used with the rtmp/librtmp
protocol.

Luca Barbato authored on 2011/06/06 23:13:05
Showing 1 changed files
... ...
@@ -434,7 +434,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
434 434
 
435 435
     av_free(data);
436 436
 
437
-    return 0;
437
+    return pb->error;
438 438
 }
439 439
 
440 440
 AVOutputFormat ff_flv_muxer = {