From: Andreas Ă–man Date: Wed, 1 Sep 2010 06:01:45 +0000 (+0000) Subject: Set correct height for interlaced h264 X-Git-Tag: 2.12~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b8dd5dafafdc90de935e3d14a75ec49bcbd123a;p=thirdparty%2Ftvheadend.git Set correct height for interlaced h264 --- diff --git a/src/parser_h264.c b/src/parser_h264.c index 55c926c4d..71e6d775c 100644 --- a/src/parser_h264.c +++ b/src/parser_h264.c @@ -354,6 +354,8 @@ h264_decode_slice_header(th_stream_t *st, bitstream_t *bs, int *pkttype, st->st_vbv_delay = -1; if(p->sps[sps_id].width && p->sps[sps_id].height && !st->st_buf.sb_err) - parser_set_stream_vsize(st, p->sps[sps_id].width, p->sps[sps_id].height); + parser_set_stream_vsize(st, p->sps[sps_id].width, + p->sps[sps_id].height * + (2 - p->sps[sps_id].mbs_only_flag)); return 0; }