Fix for bogus Ogg streams with decreasing granulepos
commit776c2adb53c58473714b118c5c0f76939a705d1a
authorViktor Gal <viktor.gal@maeth.com>
Tue, 22 Dec 2009 04:01:17 +0000 (22 15:01 +1100)
committerViktor Gal <viktor.gal@maeth.com>
Tue, 22 Dec 2009 04:01:17 +0000 (22 15:01 +1100)
tree63a69b5daa671f9cd0623bb8bf57558e99c9519e
parentb1e10619e7fbb66cfef471bda1364f22fba4bb6d
Fix for bogus Ogg streams with decreasing granulepos

This patch fixes the problems with bogus Ogg streams
that have decreasing granule positions by ignoring
those packets.

Mozilla bug 481921

NOTE: from Ogg specs.:
"Granule Position must always increase forward or
remain equal from page to page, be unset,
or be zero for a header page"
src/liboggplay/oggplay_callback.c