# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
#include <vlc_vout.h>
#include <vlc_codec.h>
-#include <mpeg2dec/mpeg2.h>
+#include <mpeg2.h>
#include <vlc_codec_synchro.h>
* Module descriptor
*****************************************************************************/
vlc_module_begin();
- set_description( _("MPEG I/II video decoder (using libmpeg2)") );
+ set_description( N_("MPEG I/II video decoder (using libmpeg2)") );
set_capability( "decoder", 150 );
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_VCODEC );
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 );