[FFmpeg-cvslog] r22474 - in trunk/libavformat: oggdec.h oggparsevorbis.c

conrad subversion
Fri Mar 12 06:16:48 CET 2010


Author: conrad
Date: Fri Mar 12 06:16:47 2010
New Revision: 22474

Log:
Const correctness for vorbis_comment

Modified:
   trunk/libavformat/oggdec.h
   trunk/libavformat/oggparsevorbis.c

Modified: trunk/libavformat/oggdec.h
==============================================================================
--- trunk/libavformat/oggdec.h	Fri Mar 12 06:16:44 2010	(r22473)
+++ trunk/libavformat/oggdec.h	Fri Mar 12 06:16:47 2010	(r22474)
@@ -115,7 +115,7 @@ extern const struct ogg_codec ff_vorbis_
 
 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)

Modified: trunk/libavformat/oggparsevorbis.c
==============================================================================
--- trunk/libavformat/oggparsevorbis.c	Fri Mar 12 06:16:44 2010	(r22473)
+++ trunk/libavformat/oggparsevorbis.c	Fri Mar 12 06:16:47 2010	(r22474)
@@ -42,7 +42,7 @@ const AVMetadataConv ff_vorbiscomment_me
 };
 
 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;



More information about the ffmpeg-cvslog mailing list