Mercurial > libavcodec.hg
comparison libvorbis.c @ 12132:189c04335897 libavcodec
use avccontext->frame_size where appropriate
author | skal |
---|---|
date | Sun, 11 Jul 2010 06:40:05 +0000 |
parents | 032a8dc03ced |
children | 24649290a14f |
comparison
equal
deleted
inserted
replaced
12131:2d51a2375ddf | 12132:189c04335897 |
---|---|
143 ogg_packet op ; | 143 ogg_packet op ; |
144 signed short *audio = data ; | 144 signed short *audio = data ; |
145 int l; | 145 int l; |
146 | 146 |
147 if(data) { | 147 if(data) { |
148 int samples = OGGVORBIS_FRAME_SIZE; | 148 const int samples = avccontext->frame_size; |
149 float **buffer ; | 149 float **buffer ; |
150 int c, channels = context->vi.channels; | 150 int c, channels = context->vi.channels; |
151 | 151 |
152 buffer = vorbis_analysis_buffer(&context->vd, samples) ; | 152 buffer = vorbis_analysis_buffer(&context->vd, samples) ; |
153 for (c = 0; c < channels; c++) { | 153 for (c = 0; c < channels; c++) { |