aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-02 15:41:44 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-02 15:41:44 +0200
commitfccde16afa3fe05b7aa1c176db3a5b042fa3c189 (patch)
treecc552a72f418d58e904ade450adc52b57b695d19
parentb70582e92f034eb17d157fb2ca102a61b0fa66ee (diff)
downloadffmpeg-fccde16afa3fe05b7aa1c176db3a5b042fa3c189.tar.gz
avcodec/flacenc: Simplify sizeof()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/flacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index 935d55f32d..cdfeaf87cd 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -969,7 +969,7 @@ static int encode_residual_ch(FlacEncodeContext *s, int ch)
score = find_subframe_rice_params(s, sub, opt_order);
if (score < best_score) {
best_score = score;
- memcpy(coefs[opt_order-1], lpc_try, sizeof(coefs[opt_order-1]));
+ memcpy(coefs[opt_order-1], lpc_try, sizeof(*coefs));
improved=1;
}
}