comparison matroskadec.c @ 3120:ea5623a8efde libavformat

Add 'disposition' bitfield to AVStream and use it for both muxing and demuxing of matroska and nut.
author eugeni
date Fri, 07 Mar 2008 19:25:09 +0000
parents 9fefe2df6756
children 20db4653d696
comparison
equal deleted inserted replaced
3119:b1caac2f77ad 3120:ea5623a8efde
2295 2295
2296 st->codec->codec_id = codec_id; 2296 st->codec->codec_id = codec_id;
2297 st->start_time = 0; 2297 st->start_time = 0;
2298 if (strcmp(track->language, "und")) 2298 if (strcmp(track->language, "und"))
2299 strcpy(st->language, track->language); 2299 strcpy(st->language, track->language);
2300
2301 if (track->flags & MATROSKA_TRACK_DEFAULT)
2302 st->disposition |= AV_DISPOSITION_DEFAULT;
2300 2303
2301 if (track->default_duration) 2304 if (track->default_duration)
2302 av_reduce(&st->codec->time_base.num, &st->codec->time_base.den, 2305 av_reduce(&st->codec->time_base.num, &st->codec->time_base.den,
2303 track->default_duration, 1000000000, 30000); 2306 track->default_duration, 1000000000, 30000);
2304 2307