for the .capabilities have AV_CODEC_CAP_ENCODER_FLUSH, so it's better to add it. Signed-off-by: Limin Wang <lance.lmwang@gmail.com>