Commit 6d1d5cac authored by michael's avatar michael

dont use memcpy for copying structs


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5574 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 081201eb
...@@ -529,7 +529,7 @@ static uint32_t calc_rice_params(RiceContext *rc, int pmin, int pmax, ...@@ -529,7 +529,7 @@ static uint32_t calc_rice_params(RiceContext *rc, int pmin, int pmax,
bits[i] = calc_optimal_rice_params(&tmp_rc, i, sums[i], n, pred_order); bits[i] = calc_optimal_rice_params(&tmp_rc, i, sums[i], n, pred_order);
if(bits[i] <= bits[opt_porder]) { if(bits[i] <= bits[opt_porder]) {
opt_porder = i; opt_porder = i;
memcpy(rc, &tmp_rc, sizeof(RiceContext)); *rc= tmp_rc;
} }
} }
......
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