]> git.tuebingen.mpg.de Git - paraslash.git/commit
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)
commit730bae4a2d2579b862a34c6436d1652823899b90
treeff9c0c15a186e245f605a9c927793367a2d7000f
parentb223b30fd6ecea80100b1d4a6802cef0e9c29e49
ogg_afh_common.c: Check return value of ogg_page_granulepos().

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.
ogg_afh_common.c