[FFmpeg-cvslog] r21901 - trunk/libavformat/xa.c

vitor subversion
Fri Feb 19 21:20:17 CET 2010


Author: vitor
Date: Fri Feb 19 21:20:17 2010
New Revision: 21901

Log:
Fix memory leak for truncated frames

Modified:
   trunk/libavformat/xa.c

Modified: trunk/libavformat/xa.c
==============================================================================
--- trunk/libavformat/xa.c	Fri Feb 19 21:19:41 2010	(r21900)
+++ trunk/libavformat/xa.c	Fri Feb 19 21:20:17 2010	(r21901)
@@ -106,8 +106,8 @@ static int xa_read_packet(AVFormatContex
     packet_size = 15*st->codec->channels;
 
     ret = av_get_packet(pb, pkt, packet_size);
-    if(ret != packet_size)
-        return AVERROR(EIO);
+    if(ret < 0)
+        return ret;
 
     pkt->stream_index = st->index;
     xa->sent_bytes += packet_size;



More information about the ffmpeg-cvslog mailing list