mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 13:07:14 +08:00
15 lines
421 B
Diff
15 lines
421 B
Diff
--- cherokee-1.2.101/cherokee/handler_streaming.c.ffmpeg 2012-06-04 12:56:16.000000000 +0800
|
|
+++ cherokee-1.2.101/cherokee/handler_streaming.c 2012-06-04 12:56:40.000000000 +0800
|
|
@@ -380,7 +380,7 @@
|
|
if (likely (secs > 0)) {
|
|
long tmp;
|
|
|
|
- tmp = (hdl->avformat->file_size / secs);
|
|
+ tmp = (avio_size(hdl->avformat) / secs);
|
|
if (tmp > rate) {
|
|
rate = tmp;
|
|
TRACE(ENTRIES, "New rate: %d bytes/s\n", rate);
|
|
|
|
|
|
|