diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2015-01-26 13:16:27 -0500 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-27 18:09:36 +0100 |
commit | 2bbad06bfcb189784e7cc5938cfb3a1c7cd9b0cf (patch) | |
tree | 89fb086cc8efbc140df8ae6bd8bf180181ba2175 /sub | |
parent | acb40644db08ca7a781583666deffab7beaba10a (diff) | |
download | mpv-2bbad06bfcb189784e7cc5938cfb3a1c7cd9b0cf.tar.bz2 mpv-2bbad06bfcb189784e7cc5938cfb3a1c7cd9b0cf.tar.xz |
ta: rename MP_TALLOC_ELEMS to MP_TALLOC_AVAIL
The macro actually returns the *available* space in the array, not how
much is actually filled in.
Diffstat (limited to 'sub')
-rw-r--r-- | sub/ass_mp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/ass_mp.c b/sub/ass_mp.c index cfec8ac91d..991a94a089 100644 --- a/sub/ass_mp.c +++ b/sub/ass_mp.c @@ -207,7 +207,7 @@ void mp_ass_render_frame(ASS_Renderer *renderer, ASS_Track *track, double time, res->parts = *parts; res->num_parts = 0; - int num_parts_alloc = MP_TALLOC_ELEMS(res->parts); + int num_parts_alloc = MP_TALLOC_AVAIL(res->parts); for (struct ass_image *img = imgs; img; img = img->next) { if (img->w == 0 || img->h == 0) continue; |