mpeg2: fix size calculation from sequence_extension().

Original values from sequence_header() are 12-bit and the remaining
2 most significant bits are coming from sequence_extension().

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
Sreerenj Balachandran 2012-02-12 11:21:52 +02:00 committed by Gwenole Beauchesne
parent f1883b4a4e
commit 033a675bcc

View file

@ -396,8 +396,8 @@ decode_sequence_ext(GstVaapiDecoderMpeg2 *decoder, guchar *buf, guint buf_size)
priv->has_seq_ext = TRUE;
priv->progressive_sequence = seq_ext->progressive;
width = (priv->width & 0xffff) | ((guint32)seq_ext->horiz_size_ext << 16);
height = (priv->height & 0xffff) | ((guint32)seq_ext->vert_size_ext << 16);
width = (priv->width & 0x0fff) | ((guint32)seq_ext->horiz_size_ext << 12);
height = (priv->height & 0x0fff) | ((guint32)seq_ext->vert_size_ext << 12);
GST_DEBUG("video resolution %ux%u", width, height);
if (seq_ext->fps_n_ext && seq_ext->fps_d_ext) {