[FFmpeg-cvslog] flvdec: pass on proper error value.
Reimar Döffinger
git at videolan.org
Tue May 1 23:21:44 CEST 2012
ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Tue May 1 20:00:30 2012 +0200| [20044cd9a9281275d84546e9efa9bb5ac9df1fbe] | committer: Reimar Döffinger
flvdec: pass on proper error value.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=20044cd9a9281275d84546e9efa9bb5ac9df1fbe
---
libavformat/flvdec.c | 5 ++---
1 files 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;
More information about the ffmpeg-cvslog
mailing list