Commit 603cd941 authored by Thomas Daede's avatar Thomas Daede
Browse files

Port opus-tools check to see if underlying file was overwritten.

parent 128f0f81
......@@ -264,6 +264,10 @@ static ogg_int64_t _get_prev_page_serial(OggVorbis_File *vf, ogg_int64_t begin,
/*We started from the beginning of the stream and found nothing.
This should be impossible unless the contents of the stream changed out
from under us after we read from it.*/
if(!begin&&vf->offset<0)return OV_EBADLINK;
/* we're not interested in the page... just the serialno and granpos. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment