Skip to content
Snippets Groups Projects
Commit dc296223 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Remove incorrect casts that should have never been there.

Originally committed as revision 11824 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2efa7fd1
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment