[FFmpeg-cvslog] avformat/img2dec: fix error code at EOF for pipes

Michael Niedermayer git at videolan.org
Thu Sep 25 15:30:53 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Sep 25 15:12:27 2014 +0200| [1dbdcb4a8c76df70ab41e3dacbfe01d59ed4091e] | committer: Michael Niedermayer

avformat/img2dec: fix error code at EOF for pipes

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1dbdcb4a8c76df70ab41e3dacbfe01d59ed4091e
---

 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