changeset 5825:4a67f1418e4c libavformat

Const correctness for vorbis_comment
author conrad
date Fri, 12 Mar 2010 05:16:47 +0000
parents b9f21d75c81a
children d75025af2e7b
files oggdec.h oggparsevorbis.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/oggdec.h	Fri Mar 12 05:16:44 2010 +0000
+++ b/oggdec.h	Fri Mar 12 05:16:47 2010 +0000
@@ -115,7 +115,7 @@
 
 extern const AVMetadataConv ff_vorbiscomment_metadata_conv[];
 
-int ff_vorbis_comment(AVFormatContext *ms, AVMetadata **m, uint8_t *buf, int size);
+int ff_vorbis_comment(AVFormatContext *ms, AVMetadata **m, const uint8_t *buf, int size);
 
 static inline int
 ogg_find_stream (struct ogg * ogg, int serial)
--- a/oggparsevorbis.c	Fri Mar 12 05:16:44 2010 +0000
+++ b/oggparsevorbis.c	Fri Mar 12 05:16:47 2010 +0000
@@ -42,7 +42,7 @@
 };
 
 int
-ff_vorbis_comment(AVFormatContext * as, AVMetadata **m, uint8_t *buf, int size)
+ff_vorbis_comment(AVFormatContext * as, AVMetadata **m, const uint8_t *buf, int size)
 {
     const uint8_t *p = buf;
     const uint8_t *end = buf + size;