提交 1dbdcb4a 编写于 作者: M Michael Niedermayer

avformat/img2dec: fix error code at EOF for pipes

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 454f98b8
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册