From ab807498bb4b8964aeab8fb9bb56f200cd34b8ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Tue, 19 Oct 2010 18:02:54 +0000 Subject: [PATCH] Compute correct aspect when interlaced --- src/parser_h264.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser_h264.c b/src/parser_h264.c index 1114f7e0..38330490 100644 --- a/src/parser_h264.c +++ b/src/parser_h264.c @@ -410,8 +410,8 @@ h264_decode_slice_header(th_stream_t *st, bitstream_t *bs, int *pkttype, if(p->sps[sps_id].aspect_num && p->sps[sps_id].aspect_den) { - int w = p->sps[sps_id].aspect_num * p->sps[sps_id].width; - int h = p->sps[sps_id].aspect_den * p->sps[sps_id].height; + int w = p->sps[sps_id].aspect_num * st->st_width; + int h = p->sps[sps_id].aspect_den * st->st_height; int d = gcd(w, h); st->st_aspect_num = w / d;