3d0c / gmf

Go Media Framework
MIT License
885 stars 170 forks source link

Do not use constant syscall.EAGAIN #159

Open debugger-zhang opened 8 months ago

debugger-zhang commented 8 months ago

Currently code has several usages of syscall.EAGAIN. However, if you compile the project in MSYS2 MinGW (see here for detail), the value of syscall.EAGAIN will be 536870918 but libavcodec still returns 11. Therefore it will results in errors. It should be replaced with a hardcoded constant with value 11.