avcodec/kmvc: Check side data size before use