changeset 3387:92fabe8c1422 libavcodec

dont use memcpy for copying structs
author michael
date Sun, 02 Jul 2006 12:40:39 +0000
parents 1b2a9377ff0d
children 22c7b4c96c2d
files flacenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flacenc.c	Sun Jul 02 11:06:27 2006 +0000
+++ b/flacenc.c	Sun Jul 02 12:40:39 2006 +0000
@@ -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;
         }
     }