[FFmpeg-soc] [soc]: r3951 - dirac/libavcodec/dirac_arith.c

conrad subversion at mplayerhq.hu
Tue Jan 13 07:22:58 CET 2009


Author: conrad
Date: Tue Jan 13 07:22:57 2009
New Revision: 3951

Log:
Revert r3927; this causes an infinite loop in get_arith_uint

Modified:
   dirac/libavcodec/dirac_arith.c

Modified: dirac/libavcodec/dirac_arith.c
==============================================================================
--- dirac/libavcodec/dirac_arith.c	Mon Jan 12 00:33:12 2009	(r3950)
+++ dirac/libavcodec/dirac_arith.c	Tue Jan 13 07:22:57 2009	(r3951)
@@ -162,6 +162,8 @@ static inline void renorm_arith_decoder(
             arith->low |= (arith->bytestream[0]<<8) + arith->bytestream[1];
             arith->bytestream += 2;
             arith->counter = 16;
+        } else if (arith->bytestream >= arith->bytestream_end) {
+            arith->low |= 1;
         }
     }
 }



More information about the FFmpeg-soc mailing list