From 0e28e9ca8f0025c34c3c6df8bf699a9a2db43abe Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Mon, 6 Jun 2011 09:13:05 -0500 Subject: [PATCH] flvenc: propagate error properly avio_flush can fail, in particular when used with the rtmp/librtmp protocol. --- libavformat/flvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {