diff options
author | wm4 <wm4@nowhere> | 2019-10-30 15:53:03 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-31 11:06:44 +0100 |
commit | 6fdfa7c9912ff9fda0ada6125bc4fed61b7220ea (patch) | |
tree | 195c3a4dfbddc54cd92e664d6e13fa4b3ce922e8 /stream/stream_memory.c | |
parent | a5461b29c460fcb8ea143aefa82bb1ac6bf4fa2b (diff) | |
download | mpv-6fdfa7c9912ff9fda0ada6125bc4fed61b7220ea.tar.bz2 mpv-6fdfa7c9912ff9fda0ada6125bc4fed61b7220ea.tar.xz |
stream_memory: remove trivial ffmpeg dependency
Diffstat (limited to 'stream/stream_memory.c')
-rw-r--r-- | stream/stream_memory.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/stream/stream_memory.c b/stream/stream_memory.c index 3db4e0bb54..2fa4538e2d 100644 --- a/stream/stream_memory.c +++ b/stream/stream_memory.c @@ -15,8 +15,6 @@ * License along with mpv. If not, see <http://www.gnu.org/licenses/>. */ -#include <libavutil/common.h> - #include "common/common.h" #include "stream.h" @@ -30,7 +28,7 @@ static int fill_buffer(stream_t *s, char* buffer, int len) bstr data = p->data; if (s->pos < 0 || s->pos > data.len) return 0; - len = FFMIN(len, data.len - s->pos); + len = MPMIN(len, data.len - s->pos); memcpy(buffer, data.start + s->pos, len); return len; } |