[FFmpeg-cvslog] avcodec/aacenc: mark output as const as its not written to

Michael Niedermayer git at videolan.org
Wed Jan 13 18:06:33 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Jan 13 16:40:22 2016 +0100| [9006567bae4ac5e218a7eda79327797d53ef67c8] | committer: Michael Niedermayer

avcodec/aacenc: mark output as const as its not written to

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 127ad4a..2a3fc6e 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -154,7 +154,7 @@ static void apply_window_and_mdct(AACEncContext *s, SingleChannelElement *sce,
                                   float *audio)
 {
     int i;
-    float *output = sce->ret_buf;
+    const float *output = sce->ret_buf;
 
     apply_window[sce->ics.window_sequence[0]](s->fdsp, sce, audio);
 



More information about the ffmpeg-cvslog mailing list