movenc: fix tkhd height for imx
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Tue, 1 Mar 2011 23:36:48 +0000 (23:36 +0000)
committerMans Rullgard <mans@mansr.com>
Tue, 1 Mar 2011 23:45:03 +0000 (23:45 +0000)
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/movenc.c

index 030cbda..3722bb6 100644 (file)
@@ -1217,7 +1217,7 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVTrack *track, AVStream *st)
               track->enc->codec_type == AVMEDIA_TYPE_SUBTITLE)) {
         if(track->mode == MODE_MOV) {
             avio_wb32(pb, track->enc->width << 16);
-            avio_wb32(pb, track->enc->height << 16);
+            avio_wb32(pb, track->height << 16);
         } else {
             double sample_aspect_ratio = av_q2d(st->sample_aspect_ratio);
             if(!sample_aspect_ratio || track->height != track->enc->height)