mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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:
parent
f1883b4a4e
commit
033a675bcc
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue