Merge commit '249796e256'
* commit '249796e256': svq3: initialize some required H264Context fields. See:e6c710600eSee:aa000ddab2Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
99a567cbe2
1 changed files with 6 additions and 2 deletions
|
|
@ -895,12 +895,16 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
|
|||
|
||||
ff_h264dsp_init(&h->h264dsp, 8, 1);
|
||||
av_assert0(h->sps.bit_depth_chroma == 0);
|
||||
ff_h264_pred_init(&h->hpc, h->avctx->codec_id, 8, 1);
|
||||
ff_h264_pred_init(&h->hpc, AV_CODEC_ID_SVQ3, 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));
|
||||
|
||||
avctx->bits_per_raw_sample = 8;
|
||||
h->sps.bit_depth_luma = 8;
|
||||
h->chroma_format_idc = 1;
|
||||
|
||||
ff_hpeldsp_init(&s->hdsp, avctx->flags);
|
||||
ff_tpeldsp_init(&s->tdsp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue