Commit f10c6732 authored by Rafaël Carré's avatar Rafaël Carré

avformat demux: fix h264 packetizing

parent 0cef084b
...@@ -287,8 +287,8 @@ int OpenDemux( vlc_object_t *p_this ) ...@@ -287,8 +287,8 @@ int OpenDemux( vlc_object_t *p_this )
fmt.i_codec = fmt.video.i_chroma; fmt.i_codec = fmt.video.i_chroma;
} }
/* We need this for the h264 packetizer */ /* We need this for the h264 packetizer */
else if( cc->codec_id == CODEC_ID_H264 && ( !strcmp( p_sys->fmt->name, "flv" ) || else if( cc->codec_id == CODEC_ID_H264 && ( p_sys->fmt == av_find_input_format("flv") ||
!strcmp( p_sys->fmt->name, "matroska" ) || !strcmp( p_sys->fmt->name, "mp4" ) ) ) 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.i_original_fourcc = VLC_FOURCC( 'a', 'v', 'c', '1' );
fmt.video.i_width = cc->width; fmt.video.i_width = cc->width;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment