mpegts muxer: Change the default subtitle language to "und"

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/54/head
Serhii Marchuk 11 years ago committed by Michael Niedermayer
parent 290326711b
commit f8051bd31a
  1. 4
      libavformat/mpegtsenc.c

@ -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…
Cancel
Save