forked from FFmpeg/FFmpeg
tty: return av_get_packet() error codes instead of converting them to EIO
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
bf959ac2c6
commit
299489714a
1 changed files with 2 additions and 2 deletions
|
@ -135,8 +135,8 @@ static int read_packet(AVFormatContext *avctx, AVPacket *pkt)
|
||||||
}
|
}
|
||||||
|
|
||||||
pkt->size = av_get_packet(avctx->pb, pkt, n);
|
pkt->size = av_get_packet(avctx->pb, pkt, n);
|
||||||
if (pkt->size <= 0)
|
if (pkt->size < 0)
|
||||||
return AVERROR(EIO);
|
return pkt->size;
|
||||||
pkt->flags |= AV_PKT_FLAG_KEY;
|
pkt->flags |= AV_PKT_FLAG_KEY;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue