ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Tue Jun  2 
15:41:44 2015 +0200| [fccde16afa3fe05b7aa1c176db3a5b042fa3c189] | committer: 
Michael Niedermayer

avcodec/flacenc: Simplify sizeof()

Signed-off-by: Michael Niedermayer <[email protected]>

> 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;
                 }
             }

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to