avformat/movenc: make AVStream easier to access
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 7 Oct 2013 15:35:40 +0000 (17:35 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 11 Oct 2013 23:42:53 +0000 (01:42 +0200)
This adds a AVStream pointer to Track

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/movenc.c
libavformat/movenc.h

index 3b934d6..f3058bd 100644 (file)
@@ -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;
index b98c7f7..09f3ea7 100644 (file)
@@ -98,6 +98,7 @@ typedef struct MOVTrack {
     int         language;
     int         track_id;
     int         tag; ///< stsd fourcc
+    AVStream    *st;
     AVCodecContext *enc;
 
     int         vos_len;