OSDN Git Service

reindent after tapt patch
authorMaksym Veremeyenko <verem@m1stereo.tv>
Fri, 25 Feb 2011 15:42:56 +0000 (17:42 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 26 Feb 2011 02:16:09 +0000 (03:16 +0100)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 77d207cbe64710b7b34865f347e608b9c0e15968)

libavformat/movenc.c

index 376555d..59c579a 100644 (file)
@@ -1220,11 +1220,11 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVTrack *track, AVStream *st)
             avio_wb32(pb, track->enc->width << 16);
             avio_wb32(pb, track->enc->height << 16);
         } else {
-        double sample_aspect_ratio = av_q2d(st->sample_aspect_ratio);
-        if(!sample_aspect_ratio || track->height != track->enc->height)
-            sample_aspect_ratio = 1;
-        avio_wb32(pb, sample_aspect_ratio * track->enc->width*0x10000);
-        avio_wb32(pb, track->height*0x10000);
+            double sample_aspect_ratio = av_q2d(st->sample_aspect_ratio);
+            if(!sample_aspect_ratio || track->height != track->enc->height)
+                sample_aspect_ratio = 1;
+            avio_wb32(pb, sample_aspect_ratio * track->enc->width*0x10000);
+            avio_wb32(pb, track->height*0x10000);
         }
     }
     else {