changeset 3464:88e25bd62781 libavformat

cosmetics, reindent
author bcoudurier
date Thu, 12 Jun 2008 00:56:54 +0000
parents 91a688e89d31
children cee1910ad600
files movenc.c
diffstat 1 files changed, 8 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/movenc.c	Thu Jun 12 00:55:49 2008 +0000
+++ b/movenc.c	Thu Jun 12 00:56:54 2008 +0000
@@ -1262,19 +1262,17 @@
             mov_write_3gp_udta_tag(pb, s, "dscp", s->comment);
             mov_write_3gp_udta_tag(pb, s, "albm", s->album);
             mov_write_3gp_udta_tag(pb, s, "yrrc", "nil");
+        } else if (mov->mode == MODE_MOV) { // the title field breaks gtkpod with mp4 and my suspicion is that stuff is not valid in mp4
+            mov_write_string_tag(pb, "\251nam", s->title         , 0);
+            mov_write_string_tag(pb, "\251aut", s->author        , 0);
+            mov_write_string_tag(pb, "\251alb", s->album         , 0);
+            mov_write_day_tag(pb, s->year, 0);
+            mov_write_string_tag(pb, "\251enc", LIBAVFORMAT_IDENT, 0);
+            mov_write_string_tag(pb, "\251des", s->comment       , 0);
+            mov_write_string_tag(pb, "\251gen", s->genre         , 0);
         } else {
-            if(mov->mode == MODE_MOV){ // the title field breaks gtkpod with mp4 and my suspicion is that stuff is not valid in mp4
-                mov_write_string_tag(pb, "\251nam", s->title         , 0);
-                mov_write_string_tag(pb, "\251aut", s->author        , 0);
-                mov_write_string_tag(pb, "\251alb", s->album         , 0);
-                mov_write_day_tag(pb, s->year, 0);
-                mov_write_string_tag(pb, "\251enc", LIBAVFORMAT_IDENT, 0);
-                mov_write_string_tag(pb, "\251des", s->comment       , 0);
-                mov_write_string_tag(pb, "\251gen", s->genre         , 0);
-            } else {
             /* iTunes meta data */
             mov_write_meta_tag(pb, mov, s);
-            }
         }
         return updateSize(pb, pos);
     }