avcodec/8bps: Check side data size before use