demux: take chapter/attachment name strings without 0-termination
commit49b80fe6b45dad5b04d3903987b287f957b94259
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 26 Jan 2010 01:31:31 +0000 (26 03:31 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Wed, 27 Jan 2010 12:26:48 +0000 (27 14:26 +0200)
tree7cf380b94c7750bb5d3fe60af3781d6efa3cee1c
parent298808cddc40b66dde9578ec8abb71094357c3ce
demux: take chapter/attachment name strings without 0-termination

Change the demuxer_add_attachment() and demuxer_add_chapter()
functions to take a length argument for various name strings, so those
strings do not need to be 0-terminated. This will make it easier to
directly pass demuxed data without first making a copy just to add
0-termination. Also allocate the struct demuxer data structures for
attachments and chapters with talloc.
libmpdemux/demux_lavf.c
libmpdemux/demux_mkv.c
libmpdemux/demuxer.c
libmpdemux/demuxer.h