Commit 29948971 authored by Peter Ross's avatar Peter Ross Committed by Michael Niedermayer

tty: return av_get_packet() error codes instead of converting them to EIO

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bf959ac2
...@@ -135,8 +135,8 @@ static int read_packet(AVFormatContext *avctx, AVPacket *pkt) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment