oggstream: Fix default granuleshift usage
authorEdward Hervey <edward@centricular.com>
Sat, 4 Nov 2017 10:29:52 +0000 (11:29 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 4 Nov 2017 10:50:13 +0000 (11:50 +0100)
commit2cf5d596eec8e0a0ee45d0577b7acba9e83aa5fe
treeedbeff228cc3aca74069b3bfe1f27405ea613e90
parent1172e5efc730c1cec69139bb255d7331e5a491cb
oggstream: Fix default granuleshift usage

For stream mappers that don't set a specific granuleshift, it will
have the default value of -1.

Protect the code for that and return the granule value as-is
ext/ogg/gstoggstream.c