]> git.sesse.net Git - vlc/blobdiff - modules/codec/libmpeg2.c
Clone video filter : fix potential memleak.
[vlc] / modules / codec / libmpeg2.c
index 72ea9562c7fe2b1e684bc8288b1dc3b0c16bea73..13ec4c512a79b7a56c3e5c6e9c826636b7f715bd 100644 (file)
@@ -34,7 +34,7 @@
 #include <vlc_vout.h>
 #include <vlc_codec.h>
 
-#include <mpeg2dec/mpeg2.h>
+#include <mpeg2.h>
 
 #include <vlc_codec_synchro.h>
 
@@ -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 );