Commit 1af7c8b2 authored by gpoirier's avatar gpoirier

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6189 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 544211a2
......@@ -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);
......
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