changeset 1968:170e151f1d9e libavformat

10^10l to the idiot who designed this format and didnt even realize what number he used
author michael
date Fri, 30 Mar 2007 21:59:52 +0000
parents 8c20d8c19e1f
children f7b57a2fa7ca
files tta.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tta.c	Fri Mar 30 16:20:40 2007 +0000
+++ b/tta.c	Fri Mar 30 21:59:52 2007 +0000
@@ -64,7 +64,7 @@
 
     url_fskip(&s->pb, 4); // header crc
 
-    framelen = 1.04489795918367346939 * samplerate;
+    framelen = samplerate*256/245;
     c->totalframes = datalen / framelen + ((datalen % framelen) ? 1 : 0);
     c->currentframe = 0;