[FFmpeg-cvslog] r23571 - trunk/ffmpeg.c

jbr subversion
Thu Jun 10 21:50:14 CEST 2010


Author: jbr
Date: Thu Jun 10 21:50:14 2010
New Revision: 23571

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

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Thu Jun 10 21:40:56 2010	(r23570)
+++ trunk/ffmpeg.c	Thu Jun 10 21:50:14 2010	(r23571)
@@ -1840,7 +1840,7 @@ static int output_packet(AVInputStream *
                                     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);



More information about the ffmpeg-cvslog mailing list