From 1dbdcb4a8c76df70ab41e3dacbfe01d59ed4091e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 25 Sep 2014 15:12:27 +0200 Subject: [PATCH] avformat/img2dec: fix error code at EOF for pipes Signed-off-by: Michael Niedermayer --- libavformat/img2dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index a21429f6ae..ad778123f7 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) {