# HG changeset patch # User bcoudurier # Date 1239143111 0 # Node ID ffb2510144db6b43df39fa789d1e65438094de74 # Parent 5630bd03a01d307be7c8108bf9bd3ced00cf2610 invert condition to simplify code diff -r 5630bd03a01d -r ffb2510144db movenc.c --- a/movenc.c Tue Apr 07 22:23:15 2009 +0000 +++ b/movenc.c Tue Apr 07 22:25:11 2009 +0000 @@ -601,11 +601,9 @@ { int tag = track->enc->codec_tag; - if (track->enc->codec_type == CODEC_TYPE_SUBTITLE && + if (!(track->enc->codec_type == CODEC_TYPE_SUBTITLE && (tag == MKTAG('t','x','3','g') || tag == MKTAG('t','e','x','t'))) - track->tag = tag; // keep original tag - else tag = codec_get_tag(codec_ipod_tags, track->enc->codec_id); if (!match_ext(s->filename, "m4a") && !match_ext(s->filename, "m4v")) av_log(s, AV_LOG_WARNING, "Warning, extension is not .m4a nor .m4v "