aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-02 22:55:58 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-02 22:55:58 +0000
commitdc29622385dc323f7bf48a9718c625aa6a84cf43 (patch)
treec733047a3a5998ed8c5c7c2da053e8b95c84819e
parent2efa7fd10d4788a07e9a07b8e36038d4c0a55d38 (diff)
downloadffmpeg-dc29622385dc323f7bf48a9718c625aa6a84cf43.tar.gz
Remove incorrect casts that should have never been there.
Originally committed as revision 11824 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index ffb2d84818..04a33a0405 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1689,7 +1689,7 @@ static int try_decode_frame(AVStream *st, const uint8_t *data, int size)
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, const uint8_t *data, int size)
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: