]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
ogg_afh_common.c: Check return value of ogg_page_granulepos().
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 4 Jul 2019 07:04:56 +0000 (09:04 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 4 Jul 2019 07:04:56 +0000 (09:04 +0200)
This function may return -1, and we do not want to use a negative
granule position for the computation of the duration of the ogg file.

Note that oac_get_file_info() loops over all ogg pages twice, but
the second loop does not have the same problem as we already check
the return value there.


No differences found