aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2010-06-10 19:50:14 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2010-06-10 19:50:14 +0000
commite91376d1f645d514796da16b606ac2764ab005e7 (patch)
tree9ba40e23bc6cd47f6576261f76ff8b1eca78f68a
parent79c85beba860a1e2e286d2630c862ad7d1b278a6 (diff)
downloadffmpeg-e91376d1f645d514796da16b606ac2764ab005e7.tar.gz
10l: audio_buf is already a uint8_t* so no need to cast it
Originally committed as revision 23571 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 9828628d2b..96f1780395 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1840,7 +1840,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
int frame_bytes = enc->frame_size*osize*enc->channels;
if (allocated_audio_buf_size < frame_bytes)
av_exit(1);
- memset((uint8_t*)audio_buf+fifo_bytes, 0, frame_bytes - fifo_bytes);
+ memset(audio_buf+fifo_bytes, 0, frame_bytes - fifo_bytes);
}
ret = avcodec_encode_audio(enc, bit_buffer, bit_buffer_size, (short *)audio_buf);