changeset 4830:8fcb2c0d6362 libavformat

cosmetics, add empty line and remove useless braces
author bcoudurier
date Tue, 07 Apr 2009 22:31:17 +0000
parents e3d1c92193a7
children 1c7db935f752
files movenc.c
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/movenc.c	Tue Apr 07 22:28:39 2009 +0000
+++ b/movenc.c	Tue Apr 07 22:31:17 2009 +0000
@@ -606,6 +606,7 @@
         (tag == MKTAG('t','x','3','g') ||
          tag == MKTAG('t','e','x','t'))))
         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 "
                "Quicktime/Ipod might not play the file\n");
@@ -651,12 +652,11 @@
                  (tag == MKTAG('d','v','c','p') ||
                   track->enc->codec_id == CODEC_ID_RAWVIDEO ||
                   av_get_bits_per_sample(track->enc->codec_id)))) { // pcm audio
-        if (track->enc->codec_id == CODEC_ID_DVVIDEO) {
+        if (track->enc->codec_id == CODEC_ID_DVVIDEO)
             tag = mov_get_dv_codec_tag(s, track);
-        } else if (track->enc->codec_id == CODEC_ID_RAWVIDEO) {
+        else if (track->enc->codec_id == CODEC_ID_RAWVIDEO)
             tag = mov_get_rawvideo_codec_tag(s, track);
-        } else {
-            if (track->enc->codec_type == CODEC_TYPE_VIDEO) {
+        else if (track->enc->codec_type == CODEC_TYPE_VIDEO) {
                 tag = codec_get_tag(codec_movvideo_tags, track->enc->codec_id);
                 if (!tag) { // if no mac fcc found, try with Microsoft tags
                     tag = codec_get_tag(codec_bmp_tags, track->enc->codec_id);
@@ -674,10 +674,8 @@
                                "the file may be unplayable!\n");
                     }
                 }
-            } else if (track->enc->codec_type == CODEC_TYPE_SUBTITLE) {
+            } else if (track->enc->codec_type == CODEC_TYPE_SUBTITLE)
                 tag = codec_get_tag(ff_codec_movsubtitle_tags, track->enc->codec_id);
-            }
-        }
     }
 
     return tag;