[FFmpeg-cvslog] avformat/movenc: make AVStream easier to access
Michael Niedermayer
git at videolan.org
Sat Oct 12 01:58:53 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct 7 17:35:40 2013 +0200| [ce994a03f5e233a0fd2136ab589cecdacc02aa77] | committer: Michael Niedermayer
avformat/movenc: make AVStream easier to access
This adds a AVStream pointer to Track
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ce994a03f5e233a0fd2136ab589cecdacc02aa77
---
libavformat/movenc.c | 1 +
libavformat/movenc.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 3b934d6..f3058bd 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -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;
diff --git a/libavformat/movenc.h b/libavformat/movenc.h
index b98c7f7..09f3ea7 100644
--- a/libavformat/movenc.h
+++ b/libavformat/movenc.h
@@ -98,6 +98,7 @@ typedef struct MOVTrack {
int language;
int track_id;
int tag; ///< stsd fourcc
+ AVStream *st;
AVCodecContext *enc;
int vos_len;
More information about the ffmpeg-cvslog
mailing list