ffmpeg: ask a packetizer for audio too (needed since ffmpeg r6098,
authorLaurent Aimar <fenrir@videolan.org>
Tue, 20 Feb 2007 22:52:12 +0000 (22:52 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 20 Feb 2007 22:52:12 +0000 (22:52 +0000)
fixed mpeg audio decoding)
vlc_demux.h: fixed COMMON_INIT_PACKETIZER (create a packetizer and not a decoder,
fixed mpeg audio packetizer)

include/vlc_demux.h
modules/codec/ffmpeg/ffmpeg.c

index 97982eb..062f70a 100644 (file)
@@ -188,7 +188,7 @@ static inline vlc_bool_t isDemux( demux_t *p_demux, const char *psz_requested )
 #define POKE( peek, stuff, size ) (strncasecmp( (char *)peek, stuff, size )==0)
 
 #define COMMON_INIT_PACKETIZER( location ) \
-    location = vlc_object_create( p_demux, VLC_OBJECT_DECODER ); \
+    location = vlc_object_create( p_demux, VLC_OBJECT_PACKETIZER ); \
     location->pf_decode_audio = 0; \
     location->pf_decode_video = 0; \
     location->pf_decode_sub = 0; \
index 13db60a..7d6d107 100644 (file)
@@ -306,10 +306,10 @@ static int OpenDecoder( vlc_object_t *p_this )
         p_context->dsp_mask |= FF_MM_SSE2;
     }
 
+    p_dec->b_need_packetized = VLC_TRUE;
     switch( i_cat )
     {
     case VIDEO_ES:
-        p_dec->b_need_packetized = VLC_TRUE;
         p_dec->pf_decode_video = E_(DecodeVideo);
         i_result = E_( InitVideoDec )( p_dec, p_context, p_codec,
                                        i_codec_id, psz_namecodec );