[vlc-devel] [vlc-commits] demux: mkv: support OPUS/EXPERIMENTAL codec ID

Steve Lhomme robux4 at ycbcr.xyz
Thu Feb 15 08:22:36 CET 2018


Le 15/02/2018 à 05:13, Tristan Matthews a écrit :
> vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Wed Feb 14 23:12:07 2018 -0500| [5d0056dc3e2bc11bebf7dfa0ddefaa32f34cefd2] | committer: Tristan Matthews
>
> demux: mkv: support OPUS/EXPERIMENTAL codec ID

IMO it's not a good move to support temporary versions of a binary 
format. How many versions were there ? Can decoders differentiate them ? 
All of them ? Why was it called EXPERIMENTAL in the first place ? Can it 
be used for other experiments in the future ?

> Fixes #19660
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5d0056dc3e2bc11bebf7dfa0ddefaa32f34cefd2
> ---
>
>   modules/demux/mkv/matroska_segment_parse.cpp | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
> index 63cf64e346..7b18ee3286 100644
> --- a/modules/demux/mkv/matroska_segment_parse.cpp
> +++ b/modules/demux/mkv/matroska_segment_parse.cpp
> @@ -1753,7 +1753,7 @@ bool matroska_segment_c::TrackInit( mkv_track_t * p_tk )
>               vars.p_fmt->i_codec = VLC_CODEC_VORBIS;
>               fill_extra_data( vars.p_tk, 0 );
>           }
> -        S_CASE("A_OPUS") {
> +        static void A_OPUS__helper(HandlerPayload& vars) {
>               vars.p_fmt->i_codec = VLC_CODEC_OPUS;
>               vars.p_tk->b_no_duration = true;
>               if( !vars.p_tk->fmt.audio.i_rate )
> @@ -1772,6 +1772,8 @@ bool matroska_segment_c::TrackInit( mkv_track_t * p_tk )
>                   ps, pkt, 2 ) )
>                   msg_Err( vars.p_demuxer, "Couldn't pack OPUS headers");
>           }
> +        S_CASE("A_OPUS")                { A_OPUS__helper( vars ); }
> +        S_CASE("A_OPUS/EXPERIMENTAL")   { A_OPUS__helper( vars ); }
>           static void A_AAC_MPEG__helper(HandlerPayload& vars, int i_profile, bool sbr = false) {
>               int i_srate;
>   
>
> _______________________________________________
> vlc-commits mailing list
> vlc-commits at videolan.org
> https://mailman.videolan.org/listinfo/vlc-commits



More information about the vlc-devel mailing list