mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
16 lines
758 B
Diff
16 lines
758 B
Diff
diff --git a/media/liboggz/src/liboggz/oggz_seek.c b/media/liboggz/src/liboggz/oggz_seek.c
|
|
--- a/media/liboggz/src/liboggz/oggz_seek.c
|
|
+++ b/media/liboggz/src/liboggz/oggz_seek.c
|
|
@@ -750,9 +750,11 @@ oggz_bounded_seek_set (OGGZ * oggz,
|
|
if (offset_guess > offset_end) {
|
|
offset_guess = offset_end;
|
|
offset_at = oggz_seek_raw (oggz, offset_guess, SEEK_SET);
|
|
+ if (offset_at == -1) return -1;
|
|
offset_next = oggz_get_prev_start_page (oggz, og, &granule_at, &serialno);
|
|
} else {
|
|
offset_at = oggz_seek_raw (oggz, offset_guess, SEEK_SET);
|
|
+ if (offset_at == -1) return -1;
|
|
offset_next = oggz_get_next_start_page (oggz, og);
|
|
serialno = ogg_page_serialno (og);
|
|
granule_at = ogg_page_granulepos (og);
|