comparison flvenc.c @ 361:7568c9f3dc40 libavformat

100l
author michael
date Sat, 07 Feb 2004 04:21:05 +0000
parents e9232aa21976
children 20f644245408
comparison
equal deleted inserted replaced
360:81e90b91f457 361:7568c9f3dc40
298 int c=0; 298 int c=0;
299 299
300 /* copy out mp3 header from ring buffer */ 300 /* copy out mp3 header from ring buffer */
301 uint8_t header[4]; 301 uint8_t header[4];
302 for (c=0; c<4; c++) { 302 for (c=0; c<4; c++) {
303 header[c] = flv->audio_fifo[(flv->audioInPos+c) % AUDIO_FIFO_SIZE]; 303 header[c] = flv->audioFifo[(flv->audioInPos+c) % AUDIO_FIFO_SIZE];
304 } 304 }
305 305
306 if ( mp3info(header,&mp3FrameSize,&mp3SamplesPerFrame,&mp3SampleRate,&mp3IsMono) ) { 306 if ( mp3info(header,&mp3FrameSize,&mp3SamplesPerFrame,&mp3SampleRate,&mp3IsMono) ) {
307 if ( flv->audioSize >= mp3FrameSize ) { 307 if ( flv->audioSize >= mp3FrameSize ) {
308 308