diff mpegaudio_parser.c @ 4931:0d1cc37d9430 libavcodec

make some parser parameters const to avoid casting const to non-const
author aurel
date Mon, 07 May 2007 00:47:03 +0000
parents b0a24fa7cbea
children a5f6fbc9fa66
line wrap: on
line diff
--- a/mpegaudio_parser.c	Sun May 06 15:25:04 2007 +0000
+++ b/mpegaudio_parser.c	Mon May 07 00:47:03 2007 +0000
@@ -50,7 +50,7 @@
 
 static int mpegaudio_parse(AVCodecParserContext *s1,
                            AVCodecContext *avctx,
-                           uint8_t **poutbuf, int *poutbuf_size,
+                           const uint8_t **poutbuf, int *poutbuf_size,
                            const uint8_t *buf, int buf_size)
 {
     MpegAudioParseContext *s = s1->priv_data;
@@ -186,7 +186,7 @@
         if(s->frame_size > 0 && buf_ptr - buf == s->inbuf_ptr - s->inbuf
            && buf_size + buf_ptr - buf >= s->frame_size){
             if(s->header_count > 0){
-                *poutbuf = (uint8_t *)buf;
+                *poutbuf = buf;
                 *poutbuf_size = s->frame_size;
             }
             buf_ptr = buf + s->frame_size;