Mercurial > libavformat.hg
changeset 1297:f63d2066f478 libavformat
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
author | gpoirier |
---|---|
date | Thu, 07 Sep 2006 16:33:24 +0000 |
parents | 654749c12a29 |
children | 29fba975df47 |
files | avienc.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/avienc.c Thu Sep 07 08:09:15 2006 +0000 +++ b/avienc.c Thu Sep 07 16:33:24 2006 +0000 @@ -311,6 +311,11 @@ 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);