[FFmpeg-cvslog] lavc/atrac3: Constify a pointer declaration.

Carl Eugen Hoyos git at videolan.org
Sat Feb 11 17:36:13 EET 2017


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Feb 11 16:35:22 2017 +0100| [b47582f43a82d9e1717046b5db46070b2ba4c839] | committer: Carl Eugen Hoyos

lavc/atrac3: Constify a pointer declaration.

Silences an "assignment discards ‘const’ qualifier" warning.

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

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

diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index f0a948e..88ee9ba 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -652,7 +652,7 @@ static int decode_frame(AVCodecContext *avctx, const uint8_t *databuf,
 
         /* Decode sound unit pairs (channels are expected to be even).
          * Multichannel joint stereo interleaves pairs (6ch: 2ch + 2ch + 2ch) */
-        uint8_t *js_databuf;
+        const uint8_t *js_databuf;
         int js_pair, js_block_align;
 
         js_block_align = (avctx->block_align / avctx->channels) * 2; /* block pair */



More information about the ffmpeg-cvslog mailing list