avformat/img2dec: fix error code at EOF for pipes
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 25 Sep 2014 13:12:27 +0000 (15:12 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 25 Sep 2014 13:22:42 +0000 (15:22 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/img2dec.c

index a21429f..ad77812 100644 (file)
@@ -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) {