Commit 0d6b3269 authored by Alex Converse's avatar Alex Converse

Use memcpy() where appropriate in PS stereo processing remapping.

Originally committed as revision 23662 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d23077af
...@@ -812,16 +812,14 @@ static void stereo_processing(PSContext *ps, float (*l)[32][2], float (*r)[32][2 ...@@ -812,16 +812,14 @@ static void stereo_processing(PSContext *ps, float (*l)[32][2], float (*r)[32][2
const float (*H_LUT)[8][4] = (PS_BASELINE || ps->icc_mode < 3) ? HA : HB; const float (*H_LUT)[8][4] = (PS_BASELINE || ps->icc_mode < 3) ? HA : HB;
//Remapping //Remapping
for (b = 0; b < PS_MAX_NR_IIDICC; b++) { memcpy(H11[0][0], H11[0][ps->num_env_old], PS_MAX_NR_IIDICC*sizeof(H11[0][0][0]));
H11[0][0][b] = H11[0][ps->num_env_old][b]; memcpy(H11[1][0], H11[1][ps->num_env_old], PS_MAX_NR_IIDICC*sizeof(H11[1][0][0]));
H12[0][0][b] = H12[0][ps->num_env_old][b]; memcpy(H12[0][0], H12[0][ps->num_env_old], PS_MAX_NR_IIDICC*sizeof(H12[0][0][0]));
H21[0][0][b] = H21[0][ps->num_env_old][b]; memcpy(H12[1][0], H12[1][ps->num_env_old], PS_MAX_NR_IIDICC*sizeof(H12[1][0][0]));
H22[0][0][b] = H22[0][ps->num_env_old][b]; memcpy(H21[0][0], H21[0][ps->num_env_old], PS_MAX_NR_IIDICC*sizeof(H21[0][0][0]));
H11[1][0][b] = H11[1][ps->num_env_old][b]; memcpy(H21[1][0], H21[1][ps->num_env_old], PS_MAX_NR_IIDICC*sizeof(H21[1][0][0]));
H12[1][0][b] = H12[1][ps->num_env_old][b]; memcpy(H22[0][0], H22[0][ps->num_env_old], PS_MAX_NR_IIDICC*sizeof(H22[0][0][0]));
H21[1][0][b] = H21[1][ps->num_env_old][b]; memcpy(H22[1][0], H22[1][ps->num_env_old], PS_MAX_NR_IIDICC*sizeof(H22[1][0][0]));
H22[1][0][b] = H22[1][ps->num_env_old][b];
}
if (is34) { if (is34) {
remap34(&iid_mapped, ps->iid_par, ps->nr_iid_par, ps->num_env, 1); remap34(&iid_mapped, ps->iid_par, ps->nr_iid_par, ps->num_env, 1);
remap34(&icc_mapped, ps->icc_par, ps->nr_icc_par, ps->num_env, 1); remap34(&icc_mapped, ps->icc_par, ps->nr_icc_par, ps->num_env, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment