[vlc-commits] demux: mkv: set original fourcc for LATM

Francois Cartegnie git at videolan.org
Thu Jul 6 16:45:55 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jul  6 16:21:41 2017 +0200| [5bb0eaafee8ea43a7e9fb1ed6f3990da5efaf373] | committer: Francois Cartegnie

demux: mkv: set original fourcc for LATM

refs #18495

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

 modules/demux/mkv/matroska_segment_parse.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 38195c265a..1b1ff6ba53 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -1541,7 +1541,13 @@ int32_t matroska_segment_c::TrackInit( mkv_track_t * p_tk )
                     }
                 }
                 else
+                {
                     wf_tag_to_fourcc( GetWLE( &p_wf->wFormatTag ), &p_tk->fmt.i_codec, NULL );
+                    if( p_wf->wFormatTag == WAVE_FORMAT_AAC_LATM )
+                    {
+                        p_tk->fmt.i_original_fourcc = VLC_FOURCC('L','A','T','M');
+                    }
+                }
 
                 if( p_tk->fmt.i_codec == VLC_FOURCC( 'u', 'n', 'd', 'f' ) )
                     msg_Err( vars.p_demuxer, "Unrecognized wf tag: 0x%x", GetWLE( &p_wf->wFormatTag ) );



More information about the vlc-commits mailing list