changeset 4827:ffb2510144db libavformat

invert condition to simplify code
author bcoudurier
date Tue, 07 Apr 2009 22:25:11 +0000
parents 5630bd03a01d
children 762254cf3be9
files movenc.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 "