OSDN Git Service

flvenc: propagate error properly
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 6 Jun 2011 14:13:05 +0000 (09:13 -0500)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 6 Jun 2011 15:53:19 +0000 (10:53 -0500)
avio_flush can fail, in particular when used with the rtmp/librtmp
protocol.

libavformat/flvenc.c

index b8ae113..b20a3f8 100644 (file)
@@ -434,7 +434,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
 
     av_free(data);
 
-    return 0;
+    return pb->error;
 }
 
 AVOutputFormat ff_flv_muxer = {