diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2011-06-06 09:13:05 -0500 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2011-06-06 10:53:19 -0500 |
commit | 0e28e9ca8f0025c34c3c6df8bf699a9a2db43abe (patch) | |
tree | 435d6deec0459dbab49648b2aa4ab0ad2f08c5e8 | |
parent | 171ae1eb0da284dec03c996ac68920823a71644d (diff) | |
download | ffmpeg-0e28e9ca8f0025c34c3c6df8bf699a9a2db43abe.tar.gz |
flvenc: propagate error properly
avio_flush can fail, in particular when used with the rtmp/librtmp
protocol.
-rw-r--r-- | libavformat/flvenc.c | 2 |
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 = { |