diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-05-01 20:00:30 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-05-01 23:20:52 +0200 |
commit | 20044cd9a9281275d84546e9efa9bb5ac9df1fbe (patch) | |
tree | 429d6817105c5b1aaf97531e50f7254aa0638865 /libavformat/flvdec.c | |
parent | 8f63f241d499a01d086874af36801167b72b7036 (diff) | |
download | ffmpeg-20044cd9a9281275d84546e9efa9bb5ac9df1fbe.tar.gz |
flvdec: pass on proper error value.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 5 |
1 files 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; |