From 4f5e12136de717896bf322e75d42de1af09e1c3e Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 11 Jun 2013 12:16:42 +0200 Subject: stream: remove padding parameter from stream_read_complete() Seems like a completely unnecessary complication. Instead, always add a 1 byte padding (could be extended if a caller needs it), and clear it. Also add some documentation. There was some, but it was outdated and incomplete. --- sub/ass_mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sub/ass_mp.c') diff --git a/sub/ass_mp.c b/sub/ass_mp.c index 258dd57688..0efbdd9c90 100644 --- a/sub/ass_mp.c +++ b/sub/ass_mp.c @@ -122,7 +122,7 @@ ASS_Track *mp_ass_read_stream(ASS_Library *library, const char *fname, if (!s) // Stream code should have printed an error already return NULL; - struct bstr content = stream_read_complete(s, NULL, 100000000, 1); + struct bstr content = stream_read_complete(s, NULL, 100000000); if (content.start == NULL) mp_tmsg(MSGT_ASS, MSGL_ERR, "Refusing to load subtitle file " "larger than 100 MB: %s\n", fname); -- cgit v1.2.3