aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/flacenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-07-02 12:40:39 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-07-02 12:40:39 +0000
commit412759560ccd2a558e0db48f25aa987f4e72d3a1 (patch)
tree470cc5cb471c05c7efd73cb8d4c5f468d2f49356 /libavcodec/flacenc.c
parent7c69b830576617e6a7decc0269e8220d2232ad38 (diff)
downloadffmpeg-412759560ccd2a558e0db48f25aa987f4e72d3a1.tar.gz
dont use memcpy for copying structs
Originally committed as revision 5574 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flacenc.c')
-rw-r--r--libavcodec/flacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index 2c1964b81f..1ec09bbf66 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -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;
}
}