[FFmpeg-cvslog] ac3_eac3_probe: mark buffer pointers const

Michael Niedermayer git at videolan.org
Tue Dec 25 02:01:14 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 25 01:42:23 2012 +0100| [658bd6db7bd197a4f2b0fada671319ab87e926b3] | committer: Michael Niedermayer

ac3_eac3_probe: mark buffer pointers const

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

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

 libavformat/ac3dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/ac3dec.c b/libavformat/ac3dec.c
index 7a34ea8..c531f8a 100644
--- a/libavformat/ac3dec.c
+++ b/libavformat/ac3dec.c
@@ -27,7 +27,7 @@
 static int ac3_eac3_probe(AVProbeData *p, enum AVCodecID expected_codec_id)
 {
     int max_frames, first_frames = 0, frames;
-    uint8_t *buf, *buf2, *end;
+    const uint8_t *buf, *buf2, *end;
     AC3HeaderInfo hdr;
     GetBitContext gbc;
     enum AVCodecID codec_id = AV_CODEC_ID_AC3;



More information about the ffmpeg-cvslog mailing list