avcodec: Avoid splitting side data repeatedly