From c2ddf464e5484cb847dba6c078efc255ccfb5c4b Mon Sep 17 00:00:00 2001 From: Zhong Cong Date: Fri, 7 Jun 2013 20:08:43 +0800 Subject: [PATCH] mpeg2: reset quantization matrices on new sequence headers. The MPEG-2 standard specifies (6.3.7) that all quantisation matrices shall be reset to their default values when a Sequence_Header() is decoded. Signed-off-by: Gwenole Beauchesne --- gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c index c753b48c93..bb67bd5c89 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c @@ -580,6 +580,7 @@ decode_sequence(GstVaapiDecoderMpeg2 *decoder, GstVaapiDecoderUnit *unit) gst_vaapi_parser_info_mpeg2_replace(&priv->seq_ext, NULL); gst_vaapi_parser_info_mpeg2_replace(&priv->seq_display_ext, NULL); gst_vaapi_parser_info_mpeg2_replace(&priv->seq_scalable_ext, NULL); + gst_vaapi_parser_info_mpeg2_replace(&priv->quant_matrix, NULL); priv->fps_n = seq_hdr->fps_n; priv->fps_d = seq_hdr->fps_d;