ass subtitles: Fix valgrind warnings.
authorPhilip Langdale <philipl@overt.org>
Sun, 5 Aug 2012 15:57:20 +0000 (08:57 -0700)
committerPhilip Langdale <philipl@overt.org>
Sun, 5 Aug 2012 16:11:11 +0000 (09:11 -0700)
commit50b4dbf65a8b0fbd0155e1ffc0ed58fa591d3736
treed636e72479e0687b6fafaf66d906cf72ab3ac3f6
parentc30f53e4d8156f1a1e2b15b3d5504c4a67a88d5f
ass subtitles: Fix valgrind warnings.

We're now running some of this code through valgrind for the first
time, and a few warnings showed up stemming from two problems.

1) The ASS code assumes the subtitle header is null terminated, but
it wasn't, and passing the size down doesn't look like fun, so I
added a terminator

2) The code wasn't freeing all of its state.

Signed-off-by: Philip Langdale <philipl@overt.org>
ffmpeg.c
libavcodec/ass_split.c