From fffdee89cc0712ed3324bae1f86e271a36c02822 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Tue, 1 Mar 2011 23:36:48 +0000 Subject: [PATCH] movenc: fix tkhd height for imx Signed-off-by: Mans Rullgard --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 030cbda467..3722bb6384 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -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)