X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=wma_afh.c;h=d9a834836a5a9bc79458e1fc32619b13980bb538;hp=f0b73b2965bb07d0e49925bfcc776fddbaefafa8;hb=d4d37bb32a8d6219f9f52aa2ee3de55eb7e099c8;hpb=4363d478f1f9ba33b954477f0ffd163baa3d12f0;ds=sidebyside diff --git a/wma_afh.c b/wma_afh.c index f0b73b29..d9a83483 100644 --- a/wma_afh.c +++ b/wma_afh.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 Andre Noll + * Copyright (C) 2009-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -216,7 +216,7 @@ static int wma_make_chunk_table(char *buf, size_t buf_size, int block_align, goto fail; afhi->seconds_total = num_frames * 2048 /* FIXME */ / afhi->frequency; - frames_per_chunk = num_frames / num_superframes; + frames_per_chunk = num_frames / num_superframes / 2; PARA_INFO_LOG("%d frames per chunk\n", frames_per_chunk); j = 1; FOR_EACH_FRAME(f, start, buf_size, block_align) {