-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset file position #95
base: master
Are you sure you want to change the base?
Conversation
The file handle might be at EOF if the input .opus file is small. So reset the file position properly before any further handling. Fixes xiph#78.
So, before 5d0ac20, Just as a suggestion, maybe Reference: |
Wait, according to 5d0ac20, FLAC files with ID3 tags don't start with the |
What I don't know about
|
Yes. It would be extremely strange/inconvenient if it couldn't do that, given that the stream decoder is just initialized and the next call is Lines 390 to 396 in 98f3ddc
I suppose yes. FLAC do support ID3v2 format. You can see the implementation: |
Assuming a regular FLAC file (i.e. much more than 64 KB filesize, and leading metadata less than 64 KB), how come it was still working after 5d0ac20? For instance, the file is already seeked after the metadata that provides the value for My guess would be that |
If you search for "hack" (and more specifically, "hack note") in stream_decoder.c, you will notice there are already a handful of hacks related to Ogg FLAC and EOF. |
The file handle might be at EOF if the input .opus file is small. So reset the file position properly before any further handling.
Fixes #78.