You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1013 B
31 lines
1013 B
7 years ago
|
--- a/libavformat/aviobuf.c
|
||
|
+++ b/libavformat/aviobuf.c
|
||
|
@@ -33,7 +33,7 @@
|
||
|
#include "url.h"
|
||
|
#include <stdarg.h>
|
||
|
|
||
|
-#define IO_BUFFER_SIZE 32768
|
||
|
+#define IO_BUFFER_SIZE 262144
|
||
|
|
||
|
/**
|
||
|
* Do seeks within this distance ahead of the current buffer by skipping
|
||
3 years ago
|
@@ -556,15 +556,15 @@
|
||
7 years ago
|
}
|
||
|
|
||
|
/* make buffer smaller in case it ended up large after probing */
|
||
6 years ago
|
- if (s->read_packet && s->orig_buffer_size && s->buffer_size > s->orig_buffer_size && len >= s->orig_buffer_size) {
|
||
7 years ago
|
+ if (s->read_packet && s->buffer_size > max_buffer_size) {
|
||
7 years ago
|
if (dst == s->buffer && s->buf_ptr != dst) {
|
||
7 years ago
|
- int ret = ffio_set_buf_size(s, s->orig_buffer_size);
|
||
|
+ int ret = ffio_set_buf_size(s, max_buffer_size);
|
||
|
if (ret < 0)
|
||
|
av_log(s, AV_LOG_WARNING, "Failed to decrease buffer size\n");
|
||
|
|
||
|
s->checksum_ptr = dst = s->buffer;
|
||
|
}
|
||
|
- len = s->orig_buffer_size;
|
||
|
+ len = max_buffer_size;
|
||
|
}
|
||
|
|
||
7 years ago
|
len = read_packet_wrapper(s, dst, len);
|