[FFmpeg-cvslog] flvenc: propagate error properly

Luca Barbato git at videolan.org
Tue Jun 7 03:49:11 CEST 2011


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Mon Jun  6 09:13:05 2011 -0500| [0e28e9ca8f0025c34c3c6df8bf699a9a2db43abe] | committer: Luca Barbato

flvenc: propagate error properly

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e28e9ca8f0025c34c3c6df8bf699a9a2db43abe
---

 libavformat/flvenc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index b8ae113..b20a3f8 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 = {



More information about the ffmpeg-cvslog mailing list