[FFmpeg-cvslog] r17559 - trunk/libavcodec/cavsdec.c

stefang subversion
Tue Feb 24 16:56:53 CET 2009


Author: stefang
Date: Tue Feb 24 16:56:53 2009
New Revision: 17559

Log:
check for a stuffing byte at the end of a slice

Modified:
   trunk/libavcodec/cavsdec.c

Modified: trunk/libavcodec/cavsdec.c
==============================================================================
--- trunk/libavcodec/cavsdec.c	Tue Feb 24 16:54:51 2009	(r17558)
+++ trunk/libavcodec/cavsdec.c	Tue Feb 24 16:56:53 2009	(r17559)
@@ -439,6 +439,9 @@ static inline int check_for_slice(AVSCon
     if(h->mbx)
         return 0;
     align = (-get_bits_count(gb)) & 7;
+    /* check for stuffing byte */
+    if(!align && (show_bits(gb,8) == 0x80))
+        get_bits(gb,8);
     if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) {
         skip_bits_long(gb,24+align);
         h->stc = get_bits(gb,8);




More information about the ffmpeg-cvslog mailing list