diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-07 19:07:54 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-12 19:29:10 +0300 |
commit | 4e65a41a5cfdcafb0c9d26b7e531daa3a1b5fde2 (patch) | |
tree | 88b21eaa86b4c579a385966892cdf1fa6464f4e9 /libavcodec/rv34.c | |
parent | 7e241a1b73bcca768f48ff1851e9e9f3f0752000 (diff) |
avcodec/rv34: Move dsp init code to rv30/rv40
It avoids both runtime and compile-time checks.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r-- | libavcodec/rv34.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index 99e580a09a..e68072de06 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -1503,15 +1503,6 @@ av_cold int ff_rv34_decode_init(AVCodecContext *avctx) ff_h264_pred_init(&r->h, AV_CODEC_ID_RV40, 8, 1); -#if CONFIG_RV30_DECODER - if (avctx->codec_id == AV_CODEC_ID_RV30) - ff_rv30dsp_init(&r->rdsp); -#endif -#if CONFIG_RV40_DECODER - if (avctx->codec_id == AV_CODEC_ID_RV40) - ff_rv40dsp_init(&r->rdsp); -#endif - if ((ret = rv34_decoder_alloc(r)) < 0) { ff_mpv_common_end(&r->s); return ret; |