[FFmpeg-cvslog] r11824 - trunk/libavformat/utils.c

michael subversion
Sat Feb 2 23:55:58 CET 2008


Author: michael
Date: Sat Feb  2 23:55:58 2008
New Revision: 11824

Log:
Remove incorrect casts that should have never been there.


Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Sat Feb  2 23:55:58 2008
@@ -1689,7 +1689,7 @@ static int try_decode_frame(AVStream *st
     switch(st->codec->codec_type) {
     case CODEC_TYPE_VIDEO:
         ret = avcodec_decode_video(st->codec, &picture,
-                                   &got_picture, (uint8_t *)data, size);
+                                   &got_picture, data, size);
         break;
     case CODEC_TYPE_AUDIO:
         data_size = FFMAX(size, AVCODEC_MAX_AUDIO_FRAME_SIZE);
@@ -1697,7 +1697,7 @@ static int try_decode_frame(AVStream *st
         if (!samples)
             goto fail;
         ret = avcodec_decode_audio2(st->codec, samples,
-                                    &data_size, (uint8_t *)data, size);
+                                    &data_size, data, size);
         av_free(samples);
         break;
     default:




More information about the ffmpeg-cvslog mailing list