libavcodec: factor out SEI generation for A53 captions