[Ffmpeg-cvslog] r5574 - trunk/libavcodec/flacenc.c
michael
subversion
Sun Jul 2 14:40:39 CEST 2006
Author: michael
Date: Sun Jul 2 14:40:39 2006
New Revision: 5574
Modified:
trunk/libavcodec/flacenc.c
Log:
dont use memcpy for copying structs
Modified: trunk/libavcodec/flacenc.c
==============================================================================
--- trunk/libavcodec/flacenc.c (original)
+++ trunk/libavcodec/flacenc.c Sun Jul 2 14:40:39 2006
@@ -529,7 +529,7 @@
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;
}
}
More information about the ffmpeg-cvslog
mailing list