Commit 6c47d3cb 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: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 80308100199f289184e07fb0ad27839d8dfbf686)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a5749f9a
...@@ -272,6 +272,10 @@ int OpenDemux( vlc_object_t *p_this ) ...@@ -272,6 +272,10 @@ int OpenDemux( vlc_object_t *p_this )
else else
fmt.i_codec = fmt.video.i_chroma; 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_width = cc->width;
fmt.video.i_height = cc->height; 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