Add codec_did_seek(), which just calls avcodec_flush_buffers() suitably, for use after seeking.