summaryrefslogtreecommitdiff
path: root/apps/codecs/libcook/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libcook/main.c')
-rw-r--r--apps/codecs/libcook/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/libcook/main.c b/apps/codecs/libcook/main.c
index fd20f98871..3f5d3e8528 100644
--- a/apps/codecs/libcook/main.c
+++ b/apps/codecs/libcook/main.c
@@ -58,11 +58,11 @@ int open_wav(char* filename) {
58 return(fd); 58 return(fd);
59} 59}
60 60
61void close_wav(int fd, RMContext *rmctx) { 61void close_wav(int fd, RMContext *rmctx, COOKContext *q) {
62 int x,res; 62 int x,res;
63 int filesize; 63 int filesize;
64 int bytes_per_sample = 2; 64 int bytes_per_sample = 2;
65 int samples_per_frame = rmctx->samples_pf_pc; 65 int samples_per_frame = q->samples_per_frame;
66 int nb_channels = rmctx->nb_channels; 66 int nb_channels = rmctx->nb_channels;
67 int sample_rate = rmctx->sample_rate; 67 int sample_rate = rmctx->sample_rate;
68 int nb_frames = rmctx->audio_framesize/rmctx->block_align * rmctx->nb_packets - 2; // first 2 frames have no valid audio; skipped in output 68 int nb_frames = rmctx->audio_framesize/rmctx->block_align * rmctx->nb_packets - 2; // first 2 frames have no valid audio; skipped in output
@@ -182,7 +182,7 @@ int main(int argc, char *argv[])
182 packet_count -= rmctx.audio_pkt_cnt; 182 packet_count -= rmctx.audio_pkt_cnt;
183 rmctx.audio_pkt_cnt = 0; 183 rmctx.audio_pkt_cnt = 0;
184 } 184 }
185 close_wav(fd_dec,&rmctx); 185 close_wav(fd_dec, &rmctx, &q);
186 close(fd); 186 close(fd);
187 187
188 188