diff options
author | Peter Ross <pross@xvid.org> | 2012-09-04 09:44:37 +1000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-04 06:12:18 +0200 |
commit | 299489714abaa71cf36d5e5078d6229a4ba3c1a7 (patch) | |
tree | bf0cfcd896d7ca78bc9eecbfc9224646cc04560f /libavformat/tty.c | |
parent | bf959ac2c68111449cfdfb550a08ef37a537c994 (diff) | |
download | ffmpeg-299489714abaa71cf36d5e5078d6229a4ba3c1a7.tar.gz |
tty: return av_get_packet() error codes instead of converting them to EIO
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/tty.c')
-rw-r--r-- | libavformat/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/tty.c b/libavformat/tty.c index a71c6b1939..39380e2a5e 100644 --- a/libavformat/tty.c +++ b/libavformat/tty.c @@ -135,8 +135,8 @@ static int read_packet(AVFormatContext *avctx, AVPacket *pkt) } pkt->size = av_get_packet(avctx->pb, pkt, n); - if (pkt->size <= 0) - return AVERROR(EIO); + if (pkt->size < 0) + return pkt->size; pkt->flags |= AV_PKT_FLAG_KEY; return 0; } |