summaryrefslogtreecommitdiffstats
path: root/demux/demux_mkv.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-19 21:42:49 +0200
committerwm4 <wm4@nowhere>2013-10-19 21:43:08 +0200
commitd2d0bc31bf3c982254a296cc869a1b7c394addb6 (patch)
treea2aa076a8fb278ae5b3476c5046ac8ee52fda898 /demux/demux_mkv.c
parentd7287d60dd726c628dcecbb578d10d17f4e45cc2 (diff)
downloadmpv-d2d0bc31bf3c982254a296cc869a1b7c394addb6.tar.bz2
mpv-d2d0bc31bf3c982254a296cc869a1b7c394addb6.tar.xz
mp_talloc: simplify a bit
Implement MP_GROW_ARRAY using MP_TARRAY_GROW. MP_GROW_ARRAY is basically the earlier version of MP_TARRAY_GROW, and had different semantics. When I added MP_TARRAY_GROW, I didn't dare to change it, but I think all code that relied on the exact semantics of MP_GROW_ARRAY is gone now, or the difference doesn't matter anyway. The semantic change is that now (n+1)*2 elements are preallocated instead of n*2. Also, implement MP_TARRAY_GROW using MP_RESIZE_ARRAY, which saves 1 line of code. In future, these macros should be part of TA.
Diffstat (limited to 'demux/demux_mkv.c')
0 files changed, 0 insertions, 0 deletions