ffmpeginteropx / FFmpegInteropX

FFmpeg decoding library for Windows 10 UWP and WinUI 3 Apps
Apache License 2.0
212 stars 53 forks source link

Fix playback not working after EOF with filters #310

Closed lukasf closed 2 years ago

lukasf commented 2 years ago

It was reported in #304 that seeking and playback does not work after EOF, when filters were applied. The reason is that we drain the filters on EOF. After they are drained, they always return EOF. There is no flush method for filters, which is what brings normal codecs back working after EOF. Instead, we need to feed a new packet to the filter, to recover it from EOF mode.