summaryrefslogtreecommitdiff
path: root/libavformat/img2dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-25 15:12:27 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-25 15:22:42 +0200
commit1dbdcb4a8c76df70ab41e3dacbfe01d59ed4091e (patch)
tree48f3004f8078bee47c5e215df513dff06b4dc841 /libavformat/img2dec.c
parent454f98b881fc18c553d56371ac0cd1e703e52571 (diff)
avformat/img2dec: fix error code at EOF for pipes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r--libavformat/img2dec.c2
1 files changed, 1 insertions, 1 deletions
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) {