h263parse: fix height extraction for H263p
authorTim-Philipp Müller <tim@centricular.net>
Mon, 15 Jul 2013 22:01:31 +0000 (23:01 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 15 Jul 2013 22:04:35 +0000 (23:04 +0100)
gst/videoparsers/h263parse.c

index bd118d3..7c7ecbe 100644 (file)
@@ -280,7 +280,7 @@ gst_h263_parse_get_params (H263Params * params, GstBuffer * buffer,
       }
       temp8 = cpfmt >> 19;
       params->width = (((cpfmt >> 10) & 0x1f) + 1) * 4;
-      params->height = (cpfmt & 0x1f) * 4;
+      params->height = ((cpfmt & 0x1f) + 1) * 4;
 
       if (temp8 == 0xf) {
         guint32 epar = 0;