summaryrefslogtreecommitdiff
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-05 22:10:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-05 22:17:50 +0200
commitaa000ddab2352b82b9ef7ec0974080065b7cc409 (patch)
tree9a40134d345a66850a65ee7c12d4e02e8c7a06db /libavcodec/svq3.c
parent80a76905eb5c72f99cf046ae233fb7cfe7f86030 (diff)
avcodec/svq3: add scaling matrix init that was removed from h264 init
This is needed for svq3 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index edefe46c3c..a3c9cf593e 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -898,6 +898,8 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
ff_h264_pred_init(&h->hpc, h->avctx->codec_id, 8, 1);
ff_videodsp_init(&h->vdsp, 8);
h->sps.bit_depth_luma = avctx->bits_per_raw_sample = 8;
+ memset(h->pps.scaling_matrix4, 16, 6 * 16 * sizeof(uint8_t));
+ memset(h->pps.scaling_matrix8, 16, 2 * 64 * sizeof(uint8_t));
ff_hpeldsp_init(&s->hdsp, avctx->flags);
ff_tpeldsp_init(&s->tdsp);