Module: libav
Branch: master
Commit: 0e28e9ca8f0025c34c3c6df8bf699a9a2db43abe

Author:    Luca Barbato <lu_z...@gentoo.org>
Committer: Luca Barbato <lu_z...@gentoo.org>
Date:      Mon Jun  6 09:13:05 2011 -0500

flvenc: propagate error properly

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

---

 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 = {

_______________________________________________
libav-commits mailing list
libav-commits@libav.org
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to