]> git.sesse.net Git - vlc/commitdiff
Use the correct test
authorChristophe Mutricy <xtophe@videolan.org>
Wed, 16 Jul 2008 23:21:02 +0000 (00:21 +0100)
committerChristophe Mutricy <xtophe@videolan.org>
Thu, 17 Jul 2008 19:51:52 +0000 (20:51 +0100)
Refs #791

modules/codec/libmpeg2.c

index f0886380c8915e24e06a076858744ecc2b763686..13ec4c512a79b7a56c3e5c6e9c826636b7f715bd 100644 (file)
@@ -294,9 +294,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
             p_block->i_buffer = 0;
             break;
 
-#ifdef STATE_SEQUENCE_MODIFIED
-/* FIXME - the above ifdef is always FALSE, even with libmpeg2-0.5.0
- * Need to improve the implementation to avoid invalid/unref pictures */
+#if MPEG2_RELEASE >= MPEG2_VERSION (0, 5, 0)
 
         case STATE_SEQUENCE_MODIFIED:
             GetAR( p_dec );