projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2efa7fd
)
Remove incorrect casts that should have never been there.
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 2 Feb 2008 22:55:58 +0000
(22:55 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 2 Feb 2008 22:55:58 +0000
(22:55 +0000)
Originally committed as revision 11824 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
ffb2d84
..
04a33a0
100644
(file)
--- 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: