avcodec: Add support for per-frame AFD output in h264