[vlc-commits] avformat demux: fix h264 packetizing

Rafaël Carré git at videolan.org
Sun Nov 13 23:23:58 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Nov 13 17:23:15 2011 -0500| [f10c673298c5f8430b6327e78299e58d13a60276] | committer: Rafaël Carré

avformat demux: fix h264 packetizing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f10c673298c5f8430b6327e78299e58d13a60276
---

 modules/demux/avformat/demux.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 684dd85..ce87eb4 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -287,8 +287,8 @@ int OpenDemux( vlc_object_t *p_this )
                     fmt.i_codec = fmt.video.i_chroma;
             }
             /* 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" ) ) )
+            else if( cc->codec_id == CODEC_ID_H264 && ( p_sys->fmt == av_find_input_format("flv") ||
+                p_sys->fmt == av_find_input_format("matroska") || p_sys->fmt == av_find_input_format("mp4") ) )
                 fmt.i_original_fourcc = VLC_FOURCC( 'a', 'v', 'c', '1' );
 
             fmt.video.i_width = cc->width;



More information about the vlc-commits mailing list