[TF][FIX] Update usage of FFmpeg to fix infinite loop (#436)
Danny Lin committed
- Author
- Danny Lin · svc.github@kdrag0n.devAug 16, 2020 at 08:46
- Committer
- 世界 · i@nekox.meAug 20, 2020 at 09:02
- Parents
- 860f8a364b2f
[TF][FIX] Update usage of FFmpeg to fix infinite loop (#436) Error when using newer version of ffmpeg: Upon further investigation, this error comes from newer versions of FFmpeg [1] as the packet read callback's expected return value on EOF has been changed. This commit fixes the issue by updating the packet read callback used to play videos with FFmpeg to return AVERROR_EOF on EOF instead of 0 as seen in mpv [2]. [1] https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=a606f27f4c610708fa96e35eed7b7537d3d8f712 [2] https://github.com/mpv-player/mpv/commit/e9dc4ac86f9dbd59147963d08ec8447bba3ed0bb
1 file changed+3−2