Commit 80308100 authored by Jai Menon's avatar Jai Menon Committed by Jean-Baptiste Kempf

AVFormat Demuxer : Set fourcc based on source container.

This is required for those containers which mux the
AVCDecoderConfigurationRecord as private/extra data
so that the AVC packetizer works correctly.

This should close #2850
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1afc9d66
......@@ -272,6 +272,10 @@ int OpenDemux( vlc_object_t *p_this )
else
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" ) ) )
fmt.i_original_fourcc = VLC_FOURCC( 'a', 'v', 'c', '1' );
fmt.video.i_width = cc->width;
fmt.video.i_height = cc->height;
......
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