aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-06-06 09:13:05 -0500
committerLuca Barbato <lu_zero@gentoo.org>2011-06-06 10:53:19 -0500
commit0e28e9ca8f0025c34c3c6df8bf699a9a2db43abe (patch)
tree435d6deec0459dbab49648b2aa4ab0ad2f08c5e8 /libavformat
parent171ae1eb0da284dec03c996ac68920823a71644d (diff)
downloadffmpeg-0e28e9ca8f0025c34c3c6df8bf699a9a2db43abe.tar.gz
flvenc: propagate error properly
avio_flush can fail, in particular when used with the rtmp/librtmp protocol.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/flvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index b8ae113905..b20a3f80c5 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 = {