]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/flacenc: Simplify sizeof()
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 2 Jun 2015 13:41:44 +0000 (15:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 2 Jun 2015 13:41:44 +0000 (15:41 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/flacenc.c

index 935d55f32dc5b1b92650ad16ff91a5b4de32a57c..cdfeaf87cdebfe78f721b882403fc26bfc35c445 100644 (file)
@@ -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;
                 }
             }