[FFmpeg-devel] [PATCH] flvdec: pass on proper error value.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue May 1 20:00:47 CEST 2012


Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
 libavformat/flvdec.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 8fce605..9f45447 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;
-- 
1.7.10



More information about the ffmpeg-devel mailing list