avcodec: stop using deprecated codec flags