Mercurial > libavcodec.hg
comparison flac.c @ 6727:706dd1afb389 libavcodec
change function parameters for dump_headers()
author | jbr |
---|---|
date | Fri, 02 May 2008 21:30:32 +0000 |
parents | 08bdfd7f3ab4 |
children | 56c5bbd0996f |
comparison
equal
deleted
inserted
replaced
6726:08bdfd7f3ab4 | 6727:706dd1afb389 |
---|---|
115 } | 115 } |
116 | 116 |
117 return 0; | 117 return 0; |
118 } | 118 } |
119 | 119 |
120 static void dump_headers(FLACContext *s) | 120 static void dump_headers(AVCodecContext *avctx, FLACContext *s) |
121 { | 121 { |
122 av_log(s->avctx, AV_LOG_DEBUG, " Blocksize: %d .. %d (%d)\n", s->min_blocksize, s->max_blocksize, s->blocksize); | 122 av_log(avctx, AV_LOG_DEBUG, " Blocksize: %d .. %d (%d)\n", s->min_blocksize, s->max_blocksize, s->blocksize); |
123 av_log(s->avctx, AV_LOG_DEBUG, " Max Framesize: %d\n", s->max_framesize); | 123 av_log(avctx, AV_LOG_DEBUG, " Max Framesize: %d\n", s->max_framesize); |
124 av_log(s->avctx, AV_LOG_DEBUG, " Samplerate: %d\n", s->samplerate); | 124 av_log(avctx, AV_LOG_DEBUG, " Samplerate: %d\n", s->samplerate); |
125 av_log(s->avctx, AV_LOG_DEBUG, " Channels: %d\n", s->channels); | 125 av_log(avctx, AV_LOG_DEBUG, " Channels: %d\n", s->channels); |
126 av_log(s->avctx, AV_LOG_DEBUG, " Bits: %d\n", s->bps); | 126 av_log(avctx, AV_LOG_DEBUG, " Bits: %d\n", s->bps); |
127 } | 127 } |
128 | 128 |
129 static void allocate_buffers(FLACContext *s){ | 129 static void allocate_buffers(FLACContext *s){ |
130 int i; | 130 int i; |
131 | 131 |
166 skip_bits(&gb, 36); /* total num of samples */ | 166 skip_bits(&gb, 36); /* total num of samples */ |
167 | 167 |
168 skip_bits(&gb, 64); /* md5 sum */ | 168 skip_bits(&gb, 64); /* md5 sum */ |
169 skip_bits(&gb, 64); /* md5 sum */ | 169 skip_bits(&gb, 64); /* md5 sum */ |
170 | 170 |
171 dump_headers(s); | 171 dump_headers(avctx, s); |
172 } | 172 } |
173 | 173 |
174 /** | 174 /** |
175 * Parse a list of metadata blocks. This list of blocks must begin with | 175 * Parse a list of metadata blocks. This list of blocks must begin with |
176 * the fLaC marker. | 176 * the fLaC marker. |
571 s->blocksize = blocksize; | 571 s->blocksize = blocksize; |
572 s->samplerate = samplerate; | 572 s->samplerate = samplerate; |
573 s->bps = bps; | 573 s->bps = bps; |
574 s->decorrelation= decorrelation; | 574 s->decorrelation= decorrelation; |
575 | 575 |
576 // dump_headers(s); | 576 // dump_headers(s->avctx, s); |
577 | 577 |
578 /* subframes */ | 578 /* subframes */ |
579 for (i = 0; i < s->channels; i++) | 579 for (i = 0; i < s->channels; i++) |
580 { | 580 { |
581 // av_log(s->avctx, AV_LOG_DEBUG, "decoded: %x residual: %x\n", s->decoded[i], s->residual[i]); | 581 // av_log(s->avctx, AV_LOG_DEBUG, "decoded: %x residual: %x\n", s->decoded[i], s->residual[i]); |