summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-30 15:53:03 +0100
committerwm4 <wm4@nowhere>2019-10-30 15:53:03 +0100
commite103f629aba9aeb4442b867360ff8f28c3f4dd25 (patch)
treef5eab866a81f8bb7ec205806b5b10b28d0f501c4
parentc6a9a1af9c8da72025a967d5e81a4a263d1ccb0e (diff)
downloadmpv-stream_shit.tar.bz2
mpv-stream_shit.tar.xz
stream_memory: remove trivial ffmpeg dependencystream_shit
-rw-r--r--stream/stream_memory.c4
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;
}