mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +00:00
avcodec/idctdsp: Clear idct/idct_add for studio profile
This does not leave them "as before" which may be a value from a previous profile Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
b3332a182f
commit
8c50d0cccf
@ -258,9 +258,11 @@ av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx)
|
|||||||
if (avctx->bits_per_raw_sample == 10 || avctx->bits_per_raw_sample == 9) {
|
if (avctx->bits_per_raw_sample == 10 || avctx->bits_per_raw_sample == 9) {
|
||||||
/* 10-bit MPEG-4 Simple Studio Profile requires a higher precision IDCT
|
/* 10-bit MPEG-4 Simple Studio Profile requires a higher precision IDCT
|
||||||
However, it only uses idct_put */
|
However, it only uses idct_put */
|
||||||
if (c->mpeg4_studio_profile)
|
if (c->mpeg4_studio_profile) {
|
||||||
c->idct_put = ff_simple_idct_put_int32_10bit;
|
c->idct_put = ff_simple_idct_put_int32_10bit;
|
||||||
else {
|
c->idct_add = NULL;
|
||||||
|
c->idct = NULL;
|
||||||
|
} else {
|
||||||
c->idct_put = ff_simple_idct_put_int16_10bit;
|
c->idct_put = ff_simple_idct_put_int16_10bit;
|
||||||
c->idct_add = ff_simple_idct_add_int16_10bit;
|
c->idct_add = ff_simple_idct_add_int16_10bit;
|
||||||
c->idct = ff_simple_idct_int16_10bit;
|
c->idct = ff_simple_idct_int16_10bit;
|
||||||
|
Loading…
Reference in New Issue
Block a user