[vlc-devel] [PATCH 1/2] avformat: mux: handle subtitle metadata

Francois Cartegnie fcvlcdev at free.fr
Wed Dec 11 16:30:24 CET 2019


Le 11/12/2019 à 16:23, Alexandre Janniaux a écrit :
>  
> +    case SPU_ES:
> +        codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE;
> +        av_dict_set( &stream->metadata, "title", fmt->psz_description, 0 );
> +        av_dict_set( &stream->metadata, "language", fmt->psz_language, 0 );
> +        break;
> +

* language is unlikely to match the expected format.

* better not create empty value for keys

-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list