From 20044cd9a9281275d84546e9efa9bb5ac9df1fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Tue, 1 May 2012 20:00:30 +0200 Subject: [PATCH] flvdec: pass on proper error value. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Reimar Döffinger --- libavformat/flvdec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 8fce605f6e..9f454474b2 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -653,9 +653,8 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) } ret= av_get_packet(s->pb, pkt, size); - if (ret < 0) { - return AVERROR(EIO); - } + if (ret < 0) + return ret; pkt->dts = dts; pkt->pts = pts == AV_NOPTS_VALUE ? dts : pts; pkt->stream_index = st->index;