changeset 4914:b0a24fa7cbea libavcodec

avoid a 'discards qualifiers from pointer' warning
author aurel
date Sat, 05 May 2007 18:17:03 +0000
parents b7bde71aa752
children c22e10113015
files mpegaudio_parser.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudio_parser.c	Sat May 05 18:08:16 2007 +0000
+++ b/mpegaudio_parser.c	Sat May 05 18:17:03 2007 +0000
@@ -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 = buf;
+                *poutbuf = (uint8_t *)buf;
                 *poutbuf_size = s->frame_size;
             }
             buf_ptr = buf + s->frame_size;