From: Luca Barbato Date: Mon, 6 Jun 2011 14:13:05 +0000 (-0500) Subject: flvenc: propagate error properly X-Git-Tag: v0.7rc1~118 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0e28e9ca8f0025c34c3c6df8bf699a9a2db43abe;p=coroid%2Flibav_saccubus.git flvenc: propagate error properly avio_flush can fail, in particular when used with the rtmp/librtmp protocol. --- diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index b8ae11390..b20a3f80c 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -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 = {