mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 14:01:27 +00:00
h264: Only initialize dsputil if error resilience is enabled
It is only used for error resilience. This allows building the h264 decoder without dsputil, if error resilience is disabled. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
62844c3fd6
commit
85deb51a01
@ -1440,6 +1440,7 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx)
|
||||
h->dequant_coeff_pps = -1;
|
||||
|
||||
/* needed so that IDCT permutation is known early */
|
||||
if (CONFIG_ERROR_RESILIENCE)
|
||||
ff_dsputil_init(&h->dsp, h->avctx);
|
||||
ff_videodsp_init(&h->vdsp, 8);
|
||||
|
||||
@ -2915,6 +2916,7 @@ static int h264_set_parameter_from_sps(H264Context *h)
|
||||
ff_h264_pred_init(&h->hpc, h->avctx->codec_id, h->sps.bit_depth_luma,
|
||||
h->sps.chroma_format_idc);
|
||||
h->dsp.dct_bits = h->sps.bit_depth_luma > 8 ? 32 : 16;
|
||||
if (CONFIG_ERROR_RESILIENCE)
|
||||
ff_dsputil_init(&h->dsp, h->avctx);
|
||||
ff_videodsp_init(&h->vdsp, h->sps.bit_depth_luma);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user