[FFmpeg-cvslog] r20154 - trunk/libavcodec/wmaprodec.c

faust3 subversion
Sat Oct 3 11:44:05 CEST 2009


Author: faust3
Date: Sat Oct  3 11:44:05 2009
New Revision: 20154

Log:
return AVERROR_INVALIDDATA when the bitstream could not be decoded

Modified:
   trunk/libavcodec/wmaprodec.c

Modified: trunk/libavcodec/wmaprodec.c
==============================================================================
--- trunk/libavcodec/wmaprodec.c	Sat Oct  3 07:18:32 2009	(r20153)
+++ trunk/libavcodec/wmaprodec.c	Sat Oct  3 11:44:05 2009	(r20154)
@@ -1528,7 +1528,7 @@ static int decode_packet(AVCodecContext 
     *data_size = (int8_t *)s->samples - (int8_t *)data;
     s->packet_offset = get_bits_count(gb) & 7;
 
-    return get_bits_count(gb) >> 3;
+    return (s->packet_loss) ? AVERROR_INVALIDDATA : get_bits_count(gb) >> 3;
 }
 
 /**



More information about the ffmpeg-cvslog mailing list