[vlc-devel] [PATCH] Fix a bug which prevents streaming output of H264-AVC from MP4

Denis Charmet typx at dinauz.org
Wed May 4 19:02:18 CEST 2011


Similar to bug #2850.
FFMPEG updated format chains from "matroska" to "matroska,webm" and "mp4" is in fact "mov,mp4,m4a,3gp,3g2,mj2"
---
 modules/demux/avformat/demux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 52a17af..939a8c4 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -286,7 +286,7 @@ int OpenDemux( vlc_object_t *p_this )
             }
             /* We need this for the h264 packetizer */
             else if( cc->codec_id == CODEC_ID_H264 && ( !strcmp( p_sys->fmt->name, "flv" ) ||
-                !strcmp( p_sys->fmt->name, "matroska" ) || !strcmp( p_sys->fmt->name, "mp4" ) ) )
+                strstr( p_sys->fmt->name, "matroska" ) || strstr( p_sys->fmt->name, "mp4" ) ) )
                 fmt.i_original_fourcc = VLC_FOURCC( 'a', 'v', 'c', '1' );
 
             fmt.video.i_width = cc->width;
-- 
1.5.6.5




More information about the vlc-devel mailing list