Mercurial > libavformat.hg
changeset 1095:bf797dc4828e libavformat
dont write LAVF_ID if bitexact and any meta tag is set
author | michael |
---|---|
date | Thu, 18 May 2006 23:03:16 +0000 |
parents | 1010b89986bd |
children | f5c75a06e2b4 |
files | movenc.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Thu May 18 22:49:27 2006 +0000 +++ b/movenc.c Thu May 18 23:03:16 2006 +0000 @@ -1145,7 +1145,8 @@ mov_write_string_tag(pb, "\251wrt", s->author , 1); mov_write_string_tag(pb, "\251alb", s->album , 1); mov_write_day_tag(pb, s->year ,1); - mov_write_string_tag(pb, "\251too", LIBAVFORMAT_IDENT, 1); + if(mov->tracks[0].enc && !(mov->tracks[0].enc->flags & CODEC_FLAG_BITEXACT)) + mov_write_string_tag(pb, "\251too", LIBAVFORMAT_IDENT, 1); mov_write_string_tag(pb, "\251cmt", s->comment , 1); mov_write_string_tag(pb, "\251gen", s->genre , 1); mov_write_trkn_tag(pb, mov, s);