Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2006-09-07 20:33:24 +0400
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-09-07 20:33:24 +0400
commit2eb291c4bbb91fd9c0ab72d27701711e84c52793 (patch)
treeece0bf392eecd4c73c8dd300114a68dcadd21d98
parentaf0ad8f0c1839985b4c9fc899fa806e3d3550530 (diff)
Allow to store the the track number though the IPRT (part) tag in AVI.
Patch by Panagiotis Issaris % takis P issaris A uhasselt P be% Original thread: Date: Sep 6, 2006 6:00 PM Subject: [Ffmpeg-devel] [PATCH] Enable track tag in AVI Originally committed as revision 6189 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/avienc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 73af738089..d8e9dde87e 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -311,6 +311,11 @@ static int avi_write_header(AVFormatContext *s)
avi_write_info_tag(pb, "ICMT", s->comment);
avi_write_info_tag(pb, "IPRD", s->album);
avi_write_info_tag(pb, "IGNR", s->genre);
+ if (s->track) {
+ char str_track[4];
+ snprintf(str_track, 4, "%d", s->track);
+ avi_write_info_tag(pb, "IPRT", str_track);
+ }
if(!(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT))
avi_write_info_tag(pb, "ISFT", LIBAVFORMAT_IDENT);
end_tag(pb, list2);