Commit d6f6779c authored by thomasvs's avatar thomasvs

        * src/tools/oggz-basetime.c: (filter_page), (read_page):
          Don't adjust granulepos of the three header packets' pages

2

git-svn-id: http://svn.annodex.net/liboggz/trunk@1326 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 53bf6658
2005-06-09 Thomas Vander Stichele <thomas at apestaart dot org>
* src/tools/oggz-basetime.c: (filter_page), (read_page):
Don't adjust granulepos of the three header packets' pages
2005-06-07 Thomas Vander Stichele <thomas at apestaart dot org>
* src/tools/oggzrip.c:
......
......@@ -166,6 +166,7 @@ filter_page (OGGZ * oggz, const ogg_page * og, long serialno, OBData * ord)
return 0;
}
static int
read_page (OGGZ * oggz, const ogg_page * og, long serialno, void * user_data)
{
......@@ -200,7 +201,10 @@ read_page (OGGZ * oggz, const ogg_page * og, long serialno, void * user_data)
#endif
}
filter_page (oggz, og, serialno, ord);
/* header pages have a granulepos 0 and should not have it changed */
if (ogg_page_granulepos ((ogg_page *) og) != 0) {
filter_page (oggz, og, serialno, ord);
}
ort->nr_packets += ogg_page_packets ((ogg_page *)og);
......
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