mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
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
This commit is contained in:
parent
79c85beba8
commit
e91376d1f6
2
ffmpeg.c
2
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);
|
||||
|
Loading…
Reference in New Issue
Block a user