Browse code

movenc: fix tkhd height for imx

Signed-off-by: Mans Rullgard <mans@mansr.com>

Baptiste Coudurier authored on 2011/03/02 08:36:48
Showing 1 changed files
... ...
@@ -1217,7 +1217,7 @@ static int mov_write_tkhd_tag(AVIOContext *pb, MOVTrack *track, AVStream *st)
1217 1217
               track->enc->codec_type == AVMEDIA_TYPE_SUBTITLE)) {
1218 1218
         if(track->mode == MODE_MOV) {
1219 1219
             avio_wb32(pb, track->enc->width << 16);
1220
-            avio_wb32(pb, track->enc->height << 16);
1220
+            avio_wb32(pb, track->height << 16);
1221 1221
         } else {
1222 1222
             double sample_aspect_ratio = av_q2d(st->sample_aspect_ratio);
1223 1223
             if(!sample_aspect_ratio || track->height != track->enc->height)