avcodec/avcodec: Limit the number of side data elements per packet