comparison flac.c @ 6377:931ca319f2fe libavcodec

Fix ;;
author michael
date Tue, 19 Feb 2008 22:09:08 +0000
parents d1caba97fc63
children 48759bfbd073
comparison
equal deleted inserted replaced
6376:f70b8e837ecc 6377:931ca319f2fe
719 *data_size = (int8_t *)samples - (int8_t *)data; 719 *data_size = (int8_t *)samples - (int8_t *)data;
720 // av_log(s->avctx, AV_LOG_DEBUG, "data size: %d\n", *data_size); 720 // av_log(s->avctx, AV_LOG_DEBUG, "data size: %d\n", *data_size);
721 721
722 // s->last_blocksize = s->blocksize; 722 // s->last_blocksize = s->blocksize;
723 end: 723 end:
724 i= (get_bits_count(&s->gb)+7)/8;; 724 i= (get_bits_count(&s->gb)+7)/8;
725 if(i > buf_size){ 725 if(i > buf_size){
726 av_log(s->avctx, AV_LOG_ERROR, "overread: %d\n", i - buf_size); 726 av_log(s->avctx, AV_LOG_ERROR, "overread: %d\n", i - buf_size);
727 s->bitstream_size=0; 727 s->bitstream_size=0;
728 s->bitstream_index=0; 728 s->bitstream_index=0;
729 return -1; 729 return -1;