AvInputVideo: fix missing frame when transcoding (flush decoder buffer)

Actually, re-fix it because was overwritten after a merge conflict : commit 2129ab27d9b582f8edd407596a660bd4603a1401