[FFmpeg-cvslog] avcodec/flacenc: Simplify sizeof()

Michael Niedermayer git at videolan.org
Tue Jun 2 18:49:59 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun  2 15:41:44 2015 +0200| [fccde16afa3fe05b7aa1c176db3a5b042fa3c189] | committer: Michael Niedermayer

avcodec/flacenc: Simplify sizeof()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fccde16afa3fe05b7aa1c176db3a5b042fa3c189
---

 libavcodec/flacenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index 935d55f..cdfeaf8 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;
                 }
             }



More information about the ffmpeg-cvslog mailing list