Permalink
Browse files

Merge pull request #40 from cherokee/mod-streaming_ffmpeg0.11-avforma…

…t-file_size-deprecated-fix

Thanks mdavid for the patch!
  • Loading branch information...
2 parents 2514994 + d6e24b9 commit d363f35eaca3f87d9af0133f7630099f61890ef8 @skinkie skinkie committed Nov 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cherokee/handler_streaming.c
@@ -380,7 +380,7 @@ set_auto_rate (cherokee_handler_streaming_t *hdl)
if (likely (secs > 0)) {
long tmp;
- tmp = (hdl->avformat->file_size / secs);
+ tmp = (avio_size(hdl->avformat) / secs);
@mehmetali

mehmetali Jan 17, 2013

Contributor

How about using hdl->handler_file->info->st_size ?

@skinkie

skinkie Jan 17, 2013

Member

I made it so.

if (tmp > rate) {
rate = tmp;
TRACE(ENTRIES, "New rate: %d bytes/s\n", rate);

0 comments on commit d363f35

Please sign in to comment.