one "cast discards qualifiers from pointer target type" less
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Feb 2008 03:29:43 +0000 (03:29 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Feb 2008 03:29:43 +0000 (03:29 +0000)
Originally committed as revision 11709 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/utils.c

index 4ebc7c3..28eea11 100644 (file)
@@ -1000,7 +1000,7 @@ int avcodec_decode_subtitle(AVCodecContext *avctx, AVSubtitle *sub,
 
     *got_sub_ptr = 0;
     ret = avctx->codec->decode(avctx, sub, got_sub_ptr,
-                               (uint8_t *)buf, buf_size);
+                               buf, buf_size);
     if (*got_sub_ptr)
         avctx->frame_number++;
     return ret;