PyAV-Org / PyAV

Pythonic bindings for FFmpeg's libraries.
https://pyav.basswood-io.com/
BSD 3-Clause "New" or "Revised" License
2.44k stars 359 forks source link

flushing subtitle decoder requires a new uninitialized packet #1461

Closed moonsikpark closed 1 month ago

moonsikpark commented 1 month ago

Implement proper flushing mechanism when using avcodec_decode_subtitle2.

Closes: #1454

moonsikpark commented 1 month ago

It would be nice if there is something in the fate suite which would allow us to test the flushing action.

WyattBlue commented 1 month ago

Good job! I think you really went above and beyond