]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Set correct height for interlaced h264
authorAndreas Öman <andreas@lonelycoder.com>
Wed, 1 Sep 2010 06:01:45 +0000 (06:01 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Wed, 1 Sep 2010 06:01:45 +0000 (06:01 +0000)
src/parser_h264.c

index 55c926c4da389f2a66e24dd5116d97a3057c8c8a..71e6d775c3dc6ad8ecf0c6a14f035efd89cad603 100644 (file)
@@ -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;
 }