[FFmpeg-devel] [PATCH 2/2] tty: return av_get_packet() error codes instead of converting them to EIO

Peter Ross pross at xvid.org
Sun Sep 2 09:37:27 CEST 2012


---
 libavformat/tty.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/tty.c b/libavformat/tty.c
index a71c6b1..aeb4e85 100644
--- a/libavformat/tty.c
+++ b/libavformat/tty.c
@@ -136,7 +136,7 @@ static int read_packet(AVFormatContext *avctx, AVPacket *pkt)
 
     pkt->size = av_get_packet(avctx->pb, pkt, n);
     if (pkt->size <= 0)
-        return AVERROR(EIO);
+        return pkt->size;
     pkt->flags |= AV_PKT_FLAG_KEY;
     return 0;
 }
-- 
1.7.10.4

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120902/ba8e1744/attachment.asc>


More information about the ffmpeg-devel mailing list