You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output of go version
go version go1.14 darwin/amd64
Additional context
The code assumes that the header is at a fixed byte. That doesn't seem to be the case. The file above contains some header info that Android wrote into the file thus the ftyp=m4a is offset from where you expect it.
Sorry for the late response.
I will have a look at this, but can you please upload the sample file again.
If you want, you can also describe how you generated the troublesome file so I can do it myself.
The file was generated on Android. I can't easily get you the code... but apparently there can be meta information in the file and thus shifting the position of the ftyp header.
audio/mp4
Expected mime type
audio/mp4
Returned mime type
video/mp4
Version of the library you are using
1.1
Output of
go version
go version go1.14 darwin/amd64
Additional context
The code assumes that the header is at a fixed byte. That doesn't seem to be the case. The file above contains some header info that Android wrote into the file thus the ftyp=m4a is offset from where you expect it.
The text was updated successfully, but these errors were encountered: