avcodec/qpeg: Check side data size before use