Commit 35ff01e1 authored by jbr's avatar jbr

10l: audio_buf is already a uint8_t* so no need to cast it


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23571 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2ab8a150
...@@ -1840,7 +1840,7 @@ static int output_packet(AVInputStream *ist, int ist_index, ...@@ -1840,7 +1840,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
int frame_bytes = enc->frame_size*osize*enc->channels; int frame_bytes = enc->frame_size*osize*enc->channels;
if (allocated_audio_buf_size < frame_bytes) if (allocated_audio_buf_size < frame_bytes)
av_exit(1); 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); ret = avcodec_encode_audio(enc, bit_buffer, bit_buffer_size, (short *)audio_buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment