changeset 3002:d6f8c7cc47f9 libavformat

Remove incorrect casts that should have never been there.
author michael
date Sat, 02 Feb 2008 22:55:58 +0000
parents 78d61e1a8496
children 532809e27981
files utils.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Sat Feb 02 22:03:01 2008 +0000
+++ b/utils.c	Sat Feb 02 22:55:58 2008 +0000
@@ -1689,7 +1689,7 @@
     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 @@
         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: