avformat/img2dec: fix error code at EOF for pipes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-09-25 15:12:27 +02:00
parent 454f98b881
commit 1dbdcb4a8c
1 changed files with 1 additions and 1 deletions

View 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) {