[SCM] libav/experimental: Const correctness for vorbis_comment

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:04:15 UTC 2013


The following commit has been merged in the experimental branch:
commit 533c30fcedd56a8a1146ef09e9e2a8a471ffd321
Author: David Conrad <lessen42 at gmail.com>
Date:   Fri Mar 12 05:16:47 2010 +0000

    Const correctness for vorbis_comment
    
    Originally committed as revision 22474 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/oggdec.h b/libavformat/oggdec.h
index 2f3a6f3..e404e58 100644
--- a/libavformat/oggdec.h
+++ b/libavformat/oggdec.h
@@ -115,7 +115,7 @@ extern const struct ogg_codec ff_vorbis_codec;
 
 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)
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index a2e057e..1546328 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -42,7 +42,7 @@ const AVMetadataConv ff_vorbiscomment_metadata_conv[] = {
 };
 
 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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list