mirror of https://git.ffmpeg.org/ffmpeg.git
mpegts muxer: Change the default subtitle language to "und"
Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
290326711b
commit
f8051bd31a
|
@ -373,8 +373,8 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
|
||||||
break;
|
break;
|
||||||
case AVMEDIA_TYPE_SUBTITLE:
|
case AVMEDIA_TYPE_SUBTITLE:
|
||||||
{
|
{
|
||||||
const char *language;
|
const char default_language[] = "und";
|
||||||
language = lang && strlen(lang->value)==3 ? lang->value : "eng";
|
const char *language = lang && strlen(lang->value)==3 ? lang->value : default_language;
|
||||||
*q++ = 0x59;
|
*q++ = 0x59;
|
||||||
*q++ = 8;
|
*q++ = 8;
|
||||||
*q++ = language[0];
|
*q++ = language[0];
|
||||||
|
|
Loading…
Reference in New Issue