Commit ce994a03 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/movenc: make AVStream easier to access

This adds a AVStream pointer to Track
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 024bf3a1
......@@ -3738,6 +3738,7 @@ static int mov_write_header(AVFormatContext *s)
AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NULL,0);
track->enc = st->codec;
track->st = st;
track->language = ff_mov_iso639_to_lang(lang?lang->value:"und", mov->mode!=MODE_MOV);
if (track->language < 0)
track->language = 0;
......
......@@ -98,6 +98,7 @@ typedef struct MOVTrack {
int language;
int track_id;
int tag; ///< stsd fourcc
AVStream *st;
AVCodecContext *enc;
int vos_len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment