# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_demux.h>
#include <vlc_meta.h>
static void Close ( vlc_object_t * );
vlc_module_begin();
- set_description( _("FLAC demuxer") );
+ set_description( N_("FLAC demuxer") );
set_capability( "demux", 155 );
set_category( CAT_INPUT );
set_subcategory( SUBCAT_INPUT_DEMUX );
i_type = GetDWBE( p_data ); RM(4);
i_len = GetDWBE( p_data ); RM(4);
- if( i_data < i_len + 4 )
+ if( i_len < 0 || i_data < i_len + 4 )
goto error;
psz_mime = strndup( p_data, i_len ); RM(i_len);
i_len = GetDWBE( p_data ); RM(4);
- if( i_data < i_len + 4*4 + 4)
+ if( i_len < 0 || i_data < i_len + 4*4 + 4)
goto error;
psz_description = strndup( p_data, i_len ); RM(i_len);
EnsureUTF8( psz_description );
RM(4*4);
i_len = GetDWBE( p_data ); RM(4);
- if( i_len > i_data )
+ if( i_len < 0 || i_len > i_data )
goto error;
msg_Dbg( p_demux, "FLAC: Picture type=%d mime=%s description='%s' file length=%d",