From: Andreas Ă–man Date: Tue, 19 Oct 2010 18:02:54 +0000 (+0000) Subject: Compute correct aspect when interlaced X-Git-Tag: 2.12~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab807498bb4b8964aeab8fb9bb56f200cd34b8ef;p=thirdparty%2Ftvheadend.git Compute correct aspect when interlaced --- diff --git a/src/parser_h264.c b/src/parser_h264.c index 1114f7e0a..383304900 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;