You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
dca: add emms_c after AV_ZERO128 macros
AV_ZERO64/128 can use MMX on x86. Reviewed-By: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -927,6 +927,8 @@ static void erase_adpcm_history(DCACoreDecoder *s)
|
|||||||
for (ch = 0; ch < DCA_CHANNELS; ch++)
|
for (ch = 0; ch < DCA_CHANNELS; ch++)
|
||||||
for (band = 0; band < DCA_SUBBANDS; band++)
|
for (band = 0; band < DCA_SUBBANDS; band++)
|
||||||
AV_ZERO128(s->subband_samples[ch][band] - DCA_ADPCM_COEFFS);
|
AV_ZERO128(s->subband_samples[ch][band] - DCA_ADPCM_COEFFS);
|
||||||
|
|
||||||
|
emms_c();
|
||||||
}
|
}
|
||||||
|
|
||||||
static int alloc_sample_buffer(DCACoreDecoder *s)
|
static int alloc_sample_buffer(DCACoreDecoder *s)
|
||||||
@@ -1434,6 +1436,8 @@ static void erase_x96_adpcm_history(DCACoreDecoder *s)
|
|||||||
for (ch = 0; ch < DCA_CHANNELS; ch++)
|
for (ch = 0; ch < DCA_CHANNELS; ch++)
|
||||||
for (band = 0; band < DCA_SUBBANDS_X96; band++)
|
for (band = 0; band < DCA_SUBBANDS_X96; band++)
|
||||||
AV_ZERO128(s->x96_subband_samples[ch][band] - DCA_ADPCM_COEFFS);
|
AV_ZERO128(s->x96_subband_samples[ch][band] - DCA_ADPCM_COEFFS);
|
||||||
|
|
||||||
|
emms_c();
|
||||||
}
|
}
|
||||||
|
|
||||||
static int alloc_x96_sample_buffer(DCACoreDecoder *s)
|
static int alloc_x96_sample_buffer(DCACoreDecoder *s)
|
||||||
|
Reference in New Issue
Block a user