Commit 2c7f69cf authored by Max Kellermann's avatar Max Kellermann

lib/xiph/OggStreamState: add constructor with ogg_page

parent 348ecc11
......@@ -36,6 +36,15 @@ public:
ogg_stream_init(&state, serialno);
}
/**
* Initialize a decoding #ogg_stream_state with the first
* page.
*/
explicit OggStreamState(ogg_page &page) {
ogg_stream_init(&state, ogg_page_serialno(&page));
PageIn(page);
}
~OggStreamState() {
ogg_stream_clear(&state);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment