summaryrefslogtreecommitdiff
path: root/libavformat/flvenc.c
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/flvenc.c
parent171ae1eb0da284dec03c996ac68920823a71644d (diff)
flvenc: propagate error properly
avio_flush can fail, in particular when used with the rtmp/librtmp protocol.
Diffstat (limited to 'libavformat/flvenc.c')
-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 = {