[FFmpeg-cvslog] avformat/img2dec: fix error code at EOF for pipes
Michael Niedermayer
git at videolan.org
Sun Oct 5 00:32:23 CEST 2014
ffmpeg | branch: release/2.4 | Michael Niedermayer <michaelni at gmx.at> | Thu Sep 25 15:12:27 2014 +0200| [16c3d6d3927ef4b8e8f5fb58d5fef064957edce2] | committer: Michael Niedermayer
avformat/img2dec: fix error code at EOF for pipes
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 1dbdcb4a8c76df70ab41e3dacbfe01d59ed4091e)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=16c3d6d3927ef4b8e8f5fb58d5fef064957edce2
---
libavformat/img2dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index a21429f..ad77812 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -422,7 +422,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
} else {
f[0] = s1->pb;
if (avio_feof(f[0]))
- return AVERROR(EIO);
+ return AVERROR_EOF;
if (s->frame_size > 0) {
size[0] = s->frame_size;
} else if (!s1->streams[0]->parser) {
More information about the ffmpeg-cvslog
mailing list