lavc/ansi: reset file
lavc/ansi: re-do refcounted frame changes from Anton