Mercurial > libavformat.hg
comparison avienc.c @ 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 | 47ade5d414f9 |
children | 7474cc6383d4 |
comparison
equal
deleted
inserted
replaced
1296:654749c12a29 | 1297:f63d2066f478 |
---|---|
309 avi_write_info_tag(pb, "IART", s->author); | 309 avi_write_info_tag(pb, "IART", s->author); |
310 avi_write_info_tag(pb, "ICOP", s->copyright); | 310 avi_write_info_tag(pb, "ICOP", s->copyright); |
311 avi_write_info_tag(pb, "ICMT", s->comment); | 311 avi_write_info_tag(pb, "ICMT", s->comment); |
312 avi_write_info_tag(pb, "IPRD", s->album); | 312 avi_write_info_tag(pb, "IPRD", s->album); |
313 avi_write_info_tag(pb, "IGNR", s->genre); | 313 avi_write_info_tag(pb, "IGNR", s->genre); |
314 if (s->track) { | |
315 char str_track[4]; | |
316 snprintf(str_track, 4, "%d", s->track); | |
317 avi_write_info_tag(pb, "IPRT", str_track); | |
318 } | |
314 if(!(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT)) | 319 if(!(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT)) |
315 avi_write_info_tag(pb, "ISFT", LIBAVFORMAT_IDENT); | 320 avi_write_info_tag(pb, "ISFT", LIBAVFORMAT_IDENT); |
316 end_tag(pb, list2); | 321 end_tag(pb, list2); |
317 | 322 |
318 /* some padding for easier tag editing */ | 323 /* some padding for easier tag editing */ |