comparison flac.c @ 2078:3dabadc91d19 libavcodec

warning vigilance
author melanson
date Sun, 13 Jun 2004 23:40:54 +0000
parents 41d30bae5019
children 9a1f3f29bf99
comparison
equal deleted inserted replaced
2077:00ba706bc844 2078:3dabadc91d19
563 void *data, int *data_size, 563 void *data, int *data_size,
564 uint8_t *buf, int buf_size) 564 uint8_t *buf, int buf_size)
565 { 565 {
566 FLACContext *s = avctx->priv_data; 566 FLACContext *s = avctx->priv_data;
567 int metadata_last, metadata_type, metadata_size; 567 int metadata_last, metadata_type, metadata_size;
568 int tmp = 0, i, j = 0, input_buf_size; 568 int tmp = 0, i, j = 0, input_buf_size = 0;
569 int16_t *samples = data, *left, *right; 569 int16_t *samples = data;
570 570
571 if(s->max_framesize == 0){ 571 if(s->max_framesize == 0){
572 s->max_framesize= 8192; // should hopefully be enough for the first header 572 s->max_framesize= 8192; // should hopefully be enough for the first header
573 s->bitstream= av_fast_realloc(s->bitstream, &s->allocated_bitstream_size, s->max_framesize); 573 s->bitstream= av_fast_realloc(s->bitstream, &s->allocated_bitstream_size, s->max_framesize);
574 } 574 }