[MPlayer-dev-eng] [PATCH] matroska chapter seeking

Evgeniy Stepanov eugeni.stepanov at gmail.com
Sat Jul 15 17:42:55 CEST 2006


On Saturday 15 July 2006 03:58, Nico Sabbi wrote:
> #define DEMUXER_CTRL_SEEK_TO_CHAPTER 13
>
> then in mplayer.c:
>
> int chap = 3;
>
> demux_control(demuxer, DEMUXER_CTRL_SEEK_TO_CHAPTER, &chap);
>
>
> and something similar to obtain from the demuxer the list of available
> chapters
> (according to an hypotetical chapter_t struct defined in a file
> accessible to other demuxers,
> such as demuxer.h)

If demuxer contains chapters infomation, there is no need for 
DEMUXER_CTRL_SEEK_TO_CHAPTER, regular seeking mechanism can be used.

2nd try. This time chapter struct is made demuxer-independent, demux_mkv sets 
demuxer->chapters and demuxer->num_chapters when headers are parsed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seek_chapter.patch
Type: text/x-diff
Size: 9067 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060715/8885537c/attachment.patch>


More information about the MPlayer-dev-eng mailing list