mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
dont use memcpy for copying structs
Originally committed as revision 5574 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7c69b83057
commit
412759560c
@ -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);
|
||||
if(bits[i] <= bits[opt_porder]) {
|
||||
opt_porder = i;
|
||||
memcpy(rc, &tmp_rc, sizeof(RiceContext));
|
||||
*rc= tmp_rc;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user